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:
> 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...

Got it all working!!!

Just a note to anyone who might have a similar problem.
I got IO::Socket::SSL working under ActiveState Perl by getting this 
package and Net::SSLeay package from
http://theoryx5.uwinnipeg.ca/ppms/

After `ppm install http://theoryx5.uwinnipeg.ca/ppms/package.ppd` both 
packages it all just started working, whew!


P.Krumins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.