[Denver-pm] Sample HTTP interaction script.
Robert L. Harris
robert.l.harris at gmail.com
Fri Mar 21 13:02:25 PDT 2014
So close. Seems the form is being done in Javascript which Mech doesn't
work with. Looking into WWW::Scripter next it seems.
On Fri, Mar 21, 2014 at 11:15 AM, Jay Hannah <jay at jays.net> wrote:
> On Mar 21, 2014, at 12:11 PM, Robert L. Harris <robert.l.harris at 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?)
>
>
>
>
> _______________________________________________
> Denver-pm mailing list
> Denver-pm at pm.org
> http://mail.pm.org/mailman/listinfo/denver-pm
>
--
:wq!
---------------------------------------------------------------------------
Robert L. Harris
DISCLAIMER:
These are MY OPINIONS With Dreams To Be A King,
ALONE. I speak for First One Should Be A Man
no-one else. - Manowar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/denver-pm/attachments/20140321/c20cc3a8/attachment.html>
More information about the Denver-pm
mailing list