I have used LWP to get the file and this works well, from the command line. I am now trying to display the file I have retrieved in a browser (using the CGI module).
Unfortunately, I reveive the following message each time:
[red]
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, xxxxx@mydomain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log."
[/red]
In the error log I see:
[red]
"[Wed Jun 04 09:15:48 2003] [error] [client 192.168.0.2] (22503)The system cannot find the path specified. : couldn't create child process: 22503: remote.pl
[Wed Jun 04 09:15:48 2003] [error] [client 192.168.0.2] (22503)The system cannot find the path specified. : couldn't spawn child process: C:/apache/cgi-bin/remote.pl"
[/red]
This is my scipt:
[red]
#!F:\Applications\Perl\bin\perl.exe -w
use CGI ':standard';
use LWP::UserAgent;
use strict;
Put in a few print statements to determine where the process is c*apping out. If you can't write them to STDOUT, i.e. the browser page, pass them to a debug log of your own to determine which statement is causing the spawn, and then look at the path therein
HTH
Paul
It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.