Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
If the name of the site is www.mydomain.com and on this page there is a login screen (username, password) what do I need to add to my program so that it 'logs in'. My program grabs certain pages from the site and parses them. What I've been doing is passing the LWP::Simple library url's that look like this:
http://www.mydomain.com/program.cgi?var1=apples&var2=bananas
It's been working great and I'm able to get many of the pages on this site. However, like I mentioned above, some of the pages on this site are 'restricted' and I need to 'login' using my parsing program so that the 'get' command will work.
Can anyone give me a good, simple example of how to login so that I can use the LWP::Simple library on restricted pages? I just want to be able to use LWP::Simple without any access problems.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Confused about LWP, Mechanize and UserAgent
by Joost (Canon) on Jun 07, 2006 at 19:40 UTC | |
Re: Confused about LWP, Mechanize and UserAgent
by tomfahle (Priest) on Jun 07, 2006 at 19:47 UTC | |
Re: Confused about LWP, Mechanize and UserAgent
by planetscape (Chancellor) on Jun 09, 2006 at 02:58 UTC |