CPAN::Forum
WWW-Mechanize - WWW::Mechanize and Apache
| 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 |
(14)
]