http://www.perlmonks.org?node_id=444764


in reply to Re: 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 see what you're getting at, but I don't understand why the second CONNECT request is asking for the proxy server rather than the remote server.

Is that part of the protocol?

  • Comment on Re^2: LWP issuing two CONNECT requests when only one is asked for?

Replies are listed 'Best First'.
Re^3: LWP issuing two CONNECT requests when only one is asked for?
by mickey (Acolyte) on Apr 04, 2005 at 19:24 UTC

    Just confirmed my own theory, i.e. that the second CONNECT isn't part of the protocol and isn't sent by other HTTPS clients. Requesting the same HTTPS server with Internet Explorer and watching the HTTP traffic with Etherial I only see one CONNECT, the first one to the specified remote server.

    So it does seem like one of the underlying modules that LWP::UserAgent uses to connect to HTTPS websites is doing something out of the ordinary.

    I'll try cutting LWP::UserAgent out of the loop and gradually getting more low-level until I find the point it's going wrong, but if anyone has any suggestions as to where I might start looking that would be great!

      Don't forget LWP::Debug

        I couldn't have forgotten it -- I didn't know about it! Thank you.