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
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.