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,
In reply to Accessing webpages with proxy url requiring user/pass by cdherold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |