SSL negotiation problem
Andrew C.M. McClintock (andrew.mcclintock@cwusa.com)
Tue, 16 May 2000 18:13:42 -0400
I am getting these errors (or, this output):
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::simple_request: GET https://www.xxx.com/
LWP::UserAgent::_need_proxy: Not proxied
HTTP::Cookies::add_cookie_header: Checking www.xxx.com for cookies
HTTP::Cookies::add_cookie_header: Checking .xxx.com for cookies
LWP::Protocol::http::request: ()
Argument "SSL negotiation failed" isn't numeric in scalar assignment at
/usr/local/lib/perl5/5.6.0/IO/Socket/INET.pm line 90.
Use of uninitialized value in hash element at
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris/Net/SSL.pm line 53.
LWP::UserAgent::request: Simple response: Internal Server Error
Query failed. 500 Can't connect to www.xxx.com:443 (Timeout)
which are produced by this script:
#!/usr/local/bin/perl -W
#use strict;
use LWP qw( HTML UserAgent );
use LWP::Debug qw( + -conns );
use HTTP::Cookies;
$timeout = 20;
$url = 'https://www.xxx.com';
$ua = LWP::UserAgent->new;
$ua->cookie_jar( HTTP::Cookies->new( file => "lwpcookies.txt", autosave
=> 1 ));
$ua->timeout( $timeout );
$request = HTTP::Request->new( GET => $url );
$response = $ua->request( $request );
if( $response->is_success ) {
print "\n".$response->as_string."\n";
} else {
print "\nQuery failed. ",$response->status_line,"\n";
}
with this configuration:
libwww-perl-5.48
Crypt-SSLeay-0.16
perl, v5.6.0 built for sun4-solaris (2.7)
openssl-0.9.5a
I cannot get the script to connect to any SSL sites, but it promptly
gets
any non-SSL sites (including those with cookies, and those with
authentication).
I assume that either I have made an error in installing these various
packages
needed, or need some patch to fix the problem. Any suggestions as to a
fix?
Thanks,
Andrew
--
Andrew C. M. McClintock Senior Unix Systems Administrator
andrew.mcclintock@cwusa.com andrew@chaosstorm.com
Cable & Wireless USA Phone: (703) 292-2244