Thread

Posted on Sun Feb 25 18:31:08 2007 by dsh
WWW::Mechanize and Apache
I wrote a stand alone little perl tool to go out and grab a file from a web service. It works fine. I put the same code in a web page and try to serve it and it doesn't download the file. I'm using fedora 6. I have loaded LWP::Debug qw(+). The output (stdout) of the perl app looks like the output of the web page in the logs. The latter is in the error_log with an [error] annotation, but I assume (maybe incorrectly) that's just where the output goes and it's working ok? Here are a couple of lines of error_log output: [Sat Feb 24 20:54:47 2007] [error] [client x.x.x.x] LWP::Protocol::collect: read 4096 bytes, referer: http://x.x.x.edu/cgi-bin/TPget.pl [Sat Feb 24 20:54:47 2007] [error] [client x.x.x.x] LWP::Protocol::collect: read 808 bytes, referer: http://x.x.x.edu/cgi-bin/TPget.pl [Sat Feb 24 20:54:47 2007] [error] [client x.x.x.x] LWP::Protocol::collect: read 2260 bytes, referer: http://x.x.x.edu/cgi-bin/TPget.pl [Sat Feb 24 20:54:47 2007] [error] [client x.x.x.x] LWP::UserAgent::request: Simple response: OK, referer: http://x.x.x.edu/cgi-bin/TPget.pl Any ideas? Thanks. dsh
Direct Responses: 4426 | Write a response
Posted on Mon Feb 26 00:17:32 2007 by dsh in response to 4420
Re: WWW::Mechanize and Apache
Sorry for the jumble. Just to make it a little clearer, I'm taking out the log records. I wrote a stand alone little perl tool to go out and grab a file from a web service. It works fine. I put the same code in a web page and try to serve it and it doesn't download the file. I'm using fedora 6. I have loaded LWP::Debug qw(+). The output (stdout) of the perl app looks like the output of the web page in the logs. The latter is in the error_log with an [error] annotation, but I assume (maybe incorrectly) that's just where the output goes and it's working ok? Any ideas on what I'm doing wrong? Thanks. dsh
Write a response