my apologies, I originally posted w/ wrong subject line. -jmg
I have a block of code similar to the following which works
on a linux server(chinook) but not from a sun-solaris server(chaos).
Does anyone know why one configuration would work and the other
doesn't.
#--------------------
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
my $req = POST "https:\/\/$cc_gateway_host$script",
[ 'x_Login' => $cc_merchantID
,'x_Test_Request' => $cc_test_mode
,'x_Version' => $an_version
,'x_Description' => $pay_xact_desc
];
$response = $ua->request($req)->as_string;
#--------------------
The $response on chaos produces:
500 (Internal Server Error) Can't connect to secure.processor.com:443
(Timeout)
Client-Date: Fri, 05 Jan 2001 18:32:22 GMT
Other conditions:
I can telnet to the host https port
from both servers (not a firewall problem)
If I change 'https:' to 'http:' it successfully
connects and does the transaction from either server.
Some configuration differences:
chinook:
# openssl
OpenSSL> version
OpenSSL 0.9.5a 1 Apr 2000
This is perl, version 5.005_03 built for i386-linux
./site_perl/5.005/i386-linux/Net/SSL.pm
$VERSION = '1.80';
./site_perl/5.005/i386-linux/Crypt/SSLeay.pm
$VERSION = '0.18';
./site_perl/5.005/i386-linux/MIME/Base64.pm
$VERSION = '2.11';
./site_perl/5.005/i386-linux/HTML/Parser.pm
$VERSION = '3.14'; # $Date: 2000/12/03 19:10:31
chaos:
$ openssl
OpenSSL> version
OpenSSL 0.9.6 24 Sep 2000
This is perl, v5.6.0 built for sun4-solaris
./site_perl/5.6.0/sun4-solaris/Net/SSL.pm
$VERSION = sprintf("%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/);
./site_perl/5.6.0/sun4-solaris/Crypt/SSLeay.pm
$VERSION = '0.16';
./site_perl/5.6.0/sun4-solaris/MIME/Base64.pm
$VERSION = '2.11';
./site_perl/5.6.0/sun4-solaris/HTML/Parser.pm
$VERSION = '3.13'; # $Date: 2000/09/17 01:39:29
chinook is configured with an apache web server and
chaos w/ netscape, but these test results occur from
running the perl scripts from a telnet command line
as well as CGI.
--
John Gerrish RMS3 Application Manager 907-465-8861 fax:2024
Alaska Marine Highway System, DOT/PF, State of Alaska
3132 Channel Dr, Juneau, AK 99801
Blessed are the flexible for they shall not be bent out of shape.