Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Proxy using Perl

by andyford (Curate)
on Aug 29, 2007 at 17:02 UTC ( #635862=note: print w/ replies, xml ) Need Help??


in reply to Proxy using Perl

I ran your code substituting my proxy and a real website and it worked. Perhaps your proxy is running on an alternative port (mine is on 8080). In that case, you want to add a colon and your port number after the IP address of the proxy (123.123.123.123:8080, eg.)

Another possibility is that your proxy requires authentication to use. From the docs:

$agent->proxy(['http', 'ftp'] => 'http://username:password@proxy.myorg +.com');

non-Perl: Andy Ford


Comment on Re: Proxy using Perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://635862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (15)
As of 2015-07-02 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls