Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: LWP::UserAgent proxy

by thomas895 (Hermit)
on Feb 28, 2014 at 07:31 UTC ( #1076480=note: print w/ replies, xml ) Need Help??

in reply to LWP::UserAgent proxy

I Assume user and pass refer to the proxy credentials, what does username and password refer to?
These refer to the basic authentication(as per RFC2617), not the proxy authentication. I assume that you prepend the auth credentials to the proxy URI as demonstrated in RFC2396 §3.2.2, though it is said to be "not recommended".

if my proxy were a hostname rather than a web address would I just insert http:// before the hostname, or use the IP address, or just the hostname?
Hostnames should be resolved to their corresponding addresses; see your network administrator and/or consult your operating system manuals to find out how to set this up. The docs do always make an indication of an initial http://
It sounds like you already have it set up, though, so http://proxy-hostname:port ought to be sufficient. Note that this does not work for anything besides HTTP proxies; SOCKS will not work.

"Excuse me for butting in, but I'm interrupt-driven..."

Comment on Re: LWP::UserAgent proxy

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-10-10 02:54 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (254 votes), past polls