getting a website through a proxy in perl/php?

ortal

Junior Member
Joined
May 27, 2008
Messages
104
Reaction score
11
I saw many items on using $ua->proxy but couldn't find how to use it.
I run Perl in ActivePerl and Php on my a web server and at least in regard to the first part I saw several differences - things that work in ActivePerl were not compiled on PerlExpress (something related to the virtual browser) and scripts from the web didn't run on my ActivePerl.
I will be thankful for any help.
 
Look for LWP::UserAgent on CPAN.org, that should give you the examples you are after.
Failing that, Google for LWP::UserAgent and you will get lots :)
 
I saw these lines:
$ua->proxy(['http', 'ftp'], 'http://proxy.sn.no:8001/');
$ua->proxy('gopher', 'http://proxy.sn.no:8001/');

but all I've got is a proxy IP - where does it belong in all this?
 
Back
Top