cdherold has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to pull down link content from webpages that can only be accessed using a username and password through a proxy URL. To manually go to the webpage I have to set the proxy URL under the options tab (FireFox) and then when I enter the webpage it asks me for a username and password. I enter these and then the website recognizes me as a specific user.
I am having trouble understanding how I would do the same in perl. I am using LWP::Simple to perform get() on links and obtain their content (works on webpages that are not restricted), but I am not clear on how to mimic the proxy url with user/pass to access the restricted webpages. I have been looking at setting the $ENV variable, as well as using the proxy aspect of LWP::UserAgent
$ua->proxy(['http', 'ftp'], 'http://proxy.sn.no:8001/');
but have so far been unsuccessful. I am feeling a little lost so I have come for your guidance.
Most Humbly,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing webpages with proxy url requiring user/pass
by Fletch (Bishop) on Sep 07, 2007 at 17:03 UTC | |
by cdherold (Monk) on Sep 08, 2007 at 04:59 UTC | |
|
Re: Accessing webpages with proxy url requiring user/pass
by dwm042 (Priest) on Sep 07, 2007 at 16:45 UTC | |
|
Re: Accessing webpages with proxy url requiring user/pass
by b4swine (Pilgrim) on Sep 08, 2007 at 02:55 UTC |