We are running 5.6.1 on W2K.
We installed LWP without a problem and Crypt::SSL
When calling an http post, everything works properly.
However, when calling an https post, we get the following error: Can you
shed any light as to where we should look?

CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:


Can't load 'C:/Perl/site/lib/auto/Crypt/SSLeay/SSLeay.dll' for module
Crypt::SSLeay: load_file:Access is denied at C:/Perl/lib/DynaLoader.pm line
206.
 at E:\lockone\wwwroot\cgi-bin\test.pl line 4
Compilation failed in require at E:\lockone\wwwroot\cgi-bin\test.pl line 4.
BEGIN failed--compilation aborted at E:\lockone\wwwroot\cgi-bin\test.pl
line 4.



Here is the code:
use CGI qw/:all/;
use LWP::UserAgent;
use HTTP::Request::Common;
use Crypt::SSLeay;

my $browser = LWP::UserAgent->new;
my $url = 'https://secure.authorize.net/gateway/transact.dll';
my $response = $browser->request(POST $url,['x_amount' => $total,
'x_card_num' => $cc, 'x_exp_date' => $exp, 'x_login' => $login,
'x_tran_key' => $key, 'x_delim_data' => $delim, 'x_relay_response' =>
$relay, 'x_method' => $method, 'x_type' => $type]);

$response->content_type('application/x-www-form-urlencoded');
$response->content('');
print "Content-type: text/html\n\n";
print $response->as_string;


Thanks,


Tony

Reply via email to