Ah.. the Camel ;-)) Well for one thing the exchange between https and your 
browser is quite a bit different.. whereas plain http can be obtained simply 
by GET [..] Which you can't do with https.. quite in the same way;-))
Hope that helps somewhat.. You also should use carp or something as it 
will allow more verbose logs to help you..  
Regards
[EMAIL PROTECTED]

> I am having some problems connecting to https sites, I have no idea if I am even 
>asking the correct list, any help would be appriciated..
> I have installed openssl 0.9.6b, Net::SSLeay Bundle::LWP MIME::Base64 HTTP::Status  
>Basically I can post to http sites however not https it refuses to connect to the 
>site and does not report an error.
> 
> An example script I am trying is below..  I have tried a few differant scripts that 
>I have on the web to try and do things like this will no luck.  Any help is 
>appriciated.
> I have tried Net::SSLeay script with no luck either, if anyone has anything I can 
>try please let me know. 
> 
> 
> #!/usr/bin/perl
> 
> # Create a user agent object
> use LWP::UserAgent;
> $ua = new LWP::UserAgent;
> $ua->agent("AgentName/0.1 " . $ua->agent);
> 
> # Create a request
> my $req = new HTTP::Request POST => 'https://www.bigpond.com;
> $req->content_type('application/x-www-form-urlencoded');
> $req->content('match=www&errors=0');
> 
> # Pass request to the user agent and get a response back
> my $res = $ua->request($req);
> 
> # Check the outcome of the response
> if ($res->is_success) {
> print $res->content;
> } else {
>       print "An error occured\n";
> }
> 
> ~~~~~~~
> This prints an error occured if I change the address to http:// not https:// it 
>works (I have tried many sites).
> 
> 
> Thanks
> Scott
> 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to