[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Sample HTTP interaction script.



On Mar 21, 2014, at 12:11 PM, Robert L. Harris <robert.l.harris@gmail.com> wrote:
> I need to throw something simple together real quick.  A one-timer that SHOULDN"T be re-used...
> 
> I need to connect to a site,  http://foo.bar:/8052/Login.html
> 
> I am then prompted for a login/password.  Once I log in I am given a new page : http://foo.bar:8052/App.html
> 
> On this page is a search box, amongst other things, I want to put in a value (user filled variable) and post the search.  Then scrape the resulting page for a result.
> 
> 
> I have done basic auth using apache auth but this is the app requiring a login using a backend database.  Also I've never filled in a search page like this.  
> 
> Does anyone have a script that might do something similar I can take apart and use as an example?  I need it semi-quick but I can't justify spending more than a day on it.

Should be easy with WWW::Mechanize:

   https://metacpan.org/pod/WWW::Mechanize#SYNOPSIS

HTH,

j




(P.S. Why is the Denver mailing list set to reply to author? Isn't reply to list better?)