But the reply from the server to the initial CONNECT is 200 OK, not 302 Found or some other redirect code -- I don't think LWP would interpret that as a redirect, would it?

Also, the 403 seems to be coming from the proxy rather than the remote server. Obviously all the traffic is coming from the proxy, so I can't tell that way, but because the preceding CONNECT is to the proxy server rather than the remote server I would guess the response comes from the proxy as well.

And the text of the HTML page returned along with the 403 response seems to indicate it's coming from our proxy, unless the remote site is running the same type of web proxy.

So I'm a little doubtful of your answer, although I appreciate your help!


In reply to Re^2: LWP issuing two CONNECT requests when only one is asked for? by mickey
in thread LWP issuing two CONNECT requests when only one is asked for? by mickey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.