mef201 has asked for the wisdom of the Perl Monks concerning the following question:

Hi. I'm getting the following error: 500 (Internal Server Error) SSL negotiation failed: Client-Date: Thu, 02 Nov 2000 23:15:58 GMT I have Crypt::SSLeay installed along with LWP. Does anyone have any idea what could be causing this? My code looks like this:
# Create a user agent object $ua = new LWP::UserAgent; $ua->agent("$0/0.1 " . $ua->agent); $ua->timeout(90); # Create a request my $req = new HTTP::Request POST => 'https://10.37.12.4:7001/mail'; $req ->content($my_string); # Pass request to the user agent and get a response back my $res = $ua->request($req); print $res->as_string."\n"; # Check the outcome of the response if ($res->is_success) { print $res->content; } else { print "Bad luck this time\n"; }
Thanks a lot - Marissa

Replies are listed 'Best First'.
RE: Crypt::SSLeay
by geektron (Curate) on Nov 03, 2000 at 05:04 UTC
    have you looked through your webserver's error logs? you'll find most of the debugging information you'll need there.

    plus, standard lecture: are you using strict in the script? i'm working under the assumption that this is a snippet.

Re: Crypt::SSLeay
by wardk (Deacon) on Nov 03, 2000 at 11:59 UTC
Re: Crypt::SSLeay
by elwarren (Priest) on Nov 03, 2000 at 19:10 UTC
    Did you try posting to a hostname instead of ip address? It could possibly be messing with the virtual host setup.

    My 2 bits.