Crypt::SSLeay problem
"Martinez Pla,Jose Antonio" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <FE3FC41CE013FB4C9A2F5A41A3E2C4522B150E@SES000900-221.es.mapfre.net> |
Hi,
I´m getting a little bit extra-crazy with the Crypt::SSLeay perl module. My
problem is next:
I´ve got a script that downloads a file from a HTTPS server with CA
authentication. My script seams like:
/******************************************************/
my $ua = LWP::UserAgent->new;
$ua->timeout(20);
$myfile = shift(@ARGV);
my $URLS = ('https://midominio/' . $myfile);
my $response = $ua->get($URL);
/******************************************************/
Well, the fact is that when I run the perl script (/usr/bin/perl
myperlscript myfilename) from the linux console with the root superuser, It
works ok, but if I run it with another user than root or even if I try to
schedule (cron) with the root, it fails and return this error log message:
/******************************************************/
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET <https://mydomain/mifilename>
https://mydomain/mifilename
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::UserAgent::request: Simple response: Internal Server Error
/******************************************************/
I don´t know what to do with it so... do you have any idea about what maybe
the problem ?
Thanks a lot.