Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Proxy using Perl

by andyford (Curate)
on Aug 29, 2007 at 17:02 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found