Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: LWP https problem with no_proxy

by daxim (Chaplain)
on Mar 11, 2013 at 12:13 UTC ( #1022789=note: print w/ replies, xml ) Need Help??

in reply to LWP https problem with no_proxy

Works for me.

plackup -e'sub{[200,[],[]]}'
starts a dummy Web server at localhost:5000. It doesn't proxy, it doesn't even do anything useful, but that's not important, the point is that it logs some output when it receives a request.

http_proxy=http://localhost:5000 perl -mLWP::UserAgent -e'my $ua = LWP::UserAgent->new; $ua->env_proxy; $ua->get("")'
gives error output from the dummy proxy - the LWP client tries to talk through the proxy.

http_proxy=http://localhost:5000 perl -mLWP::UserAgent -e'my $ua = LWP::UserAgent->new; $ua->env_proxy; $ua->get("")'
gives no output from the dummy proxy - it is by-passed.

Comment on Re: LWP https problem with no_proxy
Select or Download Code

Log In?

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

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

    Does Humor Belong in Programming?

    Results (254 votes), past polls