Hi

 

 

I wonder if you can help.

 

I have Crypt::SSLeay installed.

 

I am uploading files to a HTTPS server using a perl script. Everything
works fine when running the script from the command line.

However, when I call the script via a browser, I get the error: 

501 Protocol scheme 'https' is not supported (Crypt::SSLeay not
installed) 

The web server is configured on the same system as the perl script.

The code for calling the perl script from the browser is:

htp.formOpen(curl=><address>script_name.sh?
file_name,cmethod=>'POST');
htp.formSubmit(NULL,'Upload Text File to Secure Server');
 

The script_name is the shell script which calls the perl script, and
file_name is the file parameter to upload. The perl script gets the
file_name parameter passed to it OK, as it can print it out. 

The perl code is 

my $browser = LWP::UserAgent->new;
 my $response = $browser->post($url, Content_Type => "multipart/form-d
+ata", Content => [FILE1 => [$filename]]);

 

I'm wondering if the problem is due to the fact that Crypt::SSLeay.pm
using bootstrap(), and maybe this is failing when called from the
browser?:

 

require DynaLoader;

@ISA = qw(DynaLoader);

$VERSION = '0.51';

bootstrap Crypt::SSLeay $VERSION;

 

 

Thanks

 

Jonathan

 



*********************************************************
Disclaimer:          

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

Reply via email to