getting a website through a proxy in perl/php?

ortal

Junior Member
May 27, 2008
104
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
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock