Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Getting a webpage through proxy

by eclecticIO (Beadle)
on Jul 14, 2000 at 04:01 UTC ( #22475=note: print w/replies, xml ) Need Help??


in reply to Getting a webpage through proxy

You can use LWP::Simple if you set (and/or export) the environment variable "http_proxy='http://your.proxy:port/'."
I think this will work for any script using the LWP modules.

NOTE: Be careful if you're considering this for any type of CGI script. Setting the environment
variable won't work for the typical setup where the server runs as nobody since nobody should not
have an environement. For use in CGI scripts (if you're running Apache (and if you're not you should :) ))
you'll have to declare the proxy explicitly as above or use something like mod_env or suEXEC.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2021-04-23 17:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?