Re: Tunneling LWP https requests through an existing socket.
"Peteris Krumins [Newsgroups]" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
Peteris Krumins [Newsgroups] wrote: > > Hello! > > Any ideas how I could re-use an existing socket (for example > IO::Socket::Socks connection to a socks proxy server) to send https > traffic through it? > The problem which I am facing is that there seems to be no way I can > tell Net::SSL package to use an existing file handle/socket for > sending data. > > Net::SSL's connect() function calls only Crypt::SSLeay::Conn->new(); > to create a new socket and there is no way I can override it or pass > my socket to it. > > > Any ideas how I could get it working? Ok, having researched a little more I found that the other way to get SSL going is by using IO::Socket::SSL which provides a nifty constructor start_SSL($socket) which uses an existing socket for communications. Now if only I could get IO::Socket::SSL working under ActiveState Perl... P.Krumins