There's more than one way to do things | |
PerlMonks |
running cgi off the command line works, but running on the browser fails with a 500 errorby pat_rice_irl (Initiate) |
on Sep 27, 2007 at 16:11 UTC ( [id://641372]=perlquestion: print w/replies, xml ) | Need Help?? |
pat_rice_irl has asked for the wisdom of the Perl Monks concerning the following question:
Error 500 error is the follwoing
Thu Sep 27 16:26:56 2007 error client 10.16.153.99 Prototype mismatch: sub main::head: none vs ($) at /var/www/cgi-bin/srHandler4.cgi line 7 Thu Sep 27 16:26:57 2007 error client 10.16.153.99 Thu Sep 27 16:26:57 2007 srHandler4.cgi: Error 500 on http://pseweb.vmware.com/pending/194951021 a t /var/www/cgi-bin/srHandler4.cgi line 25. The problem is with line 7 and 25 line 7 -- shown below is prety simple 5 #### adding the bits from teat.pl 6 use warnings; 7 use LWP::Simple; Line 25 -- shown below, is just a simple getstore, this works when run from the command line, but when run form the webserver, I get above error message, I've tried the usual 500 error messages, just wondering if anyone has any ideas ??? 21 my $url = "http://private.private.com/pending/$variable_name"; 22 #print "\n This is the web site that I'm trying to got to : $url"; 23 my $file = 'testPseweb2.html'; 24 my $status = getstore($url, $file); 25 die "Error $status on $url" unless is_success($status); I've been stuck on this for a while and I'm starting to wonder..... I'm attaching script below
Back to
Seekers of Perl Wisdom
|
|