Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
There's more than one way to do things
 
PerlMonks  

Re^8: LWP issuing two CONNECT requests when only one is asked for?

by Anonymous Monk
on Apr 09, 2013 at 17:53 UTC ( #1027793=note: print w/ replies, xml ) Need Help??


in reply to Re^7: LWP issuing two CONNECT requests when only one is asked for?
in thread LWP issuing two CONNECT requests when only one is asked for?

Well, in my case there is a problem! I am using LWP:UserAgent module with perl 5.8.8 on a FreeBSD 6.1 system. And have configured Apache web server as the proxy. I have set the following environment variable to use SSLeay proxy capabilities: https_proxy=http://<Proxy server IP>:80 When I conenct to a HTTPS server over the proxy, I see from the Wireshark trace the following request sent from my machine to the proxy. CONNECT <remote HTTPS server IP>:443 HTTP/1.0 It starts to do the SSL negotiation, but in the middle of it, I see the following unexpected request from my machine to the proxy: CONNECT <Proxy server IP>:80 HTTP/1.0 My machine to trying to connect to the proxy server itself! This is somehow messing up with the previous connection to the remote HTTPS server and the SSL negotiation fails. Once in a while after many failed attempts, SSL negotiation succeeds. From the trace I see that it is successful ONLY when the second CONNECT to the proxy is not done. There is only a single CONNECT to the remote server. So this leads me to believe that the unexpected CONNECT to the proxy is an issue. The original thread mentioned that it could be a bug in LWP:UserAgent. So was wondering if it indeed is and if so, what is the solution? Thanks


Comment on Re^8: LWP issuing two CONNECT requests when only one is asked for?
Re^9: LWP issuing two CONNECT requests when only one is asked for?
by Corion (Pope) on Apr 09, 2013 at 18:03 UTC

    If you suspect a bug in LWP::UserAgent, what is your version of that module? Have you tried other versions of that module? Have you reviewed its change history to spot potential versions that might include a fix?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-04-19 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls