Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

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


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

I am trying to ressurect an 8 year old thread! I am running into the same problem of 2 CONNECT requests using LWP UserAgent (one to the proxy and one to the actual site). What was the solution?


Comment on Re^6: LWP issuing two CONNECT requests when only one is asked for?
Re^7: LWP issuing two CONNECT requests when only one is asked for?
by Anonymous Monk on Apr 09, 2013 at 13:28 UTC

    What was the solution?

    The solution is nothing, as there is no problem to be solved

      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

        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://1027564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2014-09-02 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls