Just curious, what are you trying to do after the CONNECT succeeds?
If you're going to GET/POST, it'd make more sense to let LWP handle that.
Like:
my $ua = LWP::UserAgent->new;
$ua->env_proxy; # Load proxy settings from environment variables
# like https_proxy=https://proxy:80/
my $req = HTTP::Request->new(POST =>'https://secure.example.com/cgi-stuff');
$req->content_type('application/x-www-form-urlencoded');
$req->content('ONE=two&THREE=four');
my $res = $ua->request($req);
print $res->as_string;
If you're going to do something custom after the connect, you
can use $socket->syswrite() and $socket->sysread().
(see the perlfunc man page)
Hopefully this helps...
Chris Hiner
[EMAIL PROTECTED]
On Tue, Oct 17, 2000 at 12:07:31PM +0200, Tobias Manthey wrote:
> Hi all,
> I am using LWP 5.48 and SSLeavy.
>
> What I want: Connect to an https URL, via proxy, using the CONNECT method.
>
> So far so good: My testroutine sends the requests and suceeds. Im getting
> the following response:
>
> $res->message => OK
> $res->code => 200
> $res->headers => HTTP::Headers=HASH(0x2028fb18)
> $res->content; => EMPTY
> $res->{client_socket} => IO::Socket::INET=GLOB(0x202781a0)
>
> So I got the Sockethandle........ and now I have a problem. What I am
> going to do with it?
> Can somebody provide a small example in how to deal with https requests
> using the CONNECT Method?
>
> TIA
> Tobias
>
> --
> Sent through GMX FreeMail - http://www.gmx.net