Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: LWP::UserAgent proxy

by thomas895 (Chaplain)
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..."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1076480]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-06-18 08:02 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.