Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: authenticate to a proxy server [Again!]

by integral (Hermit)
on Feb 22, 2003 at 18:40 UTC ( #237786=note: print w/ replies, xml ) Need Help??


in reply to authenticate to a proxy server [Again!]

If you want to use the LWP::UserAgent module which is a popular way of performing HTTP requests in perl, then the answer can be found in its lwpcook pod. You either use the HTTP_PROXY environment variable or the proxy method on the object. In both you need to use the http://username:password@host:port/ url format to encode your proxy username and password, the port number is optional.

--
integral, resident of freenode's #perl


Comment on Re: authenticate to a proxy server [Again!]
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2015-07-31 09:07 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 (276 votes), past polls