go ahead... be a heretic | |
PerlMonks |
WWW::Mechanize trouble reading a text/plain file on a serverby gargle (Chaplain) |
on May 24, 2011 at 07:52 UTC ( [id://906441]=perlquestion: print w/replies, xml ) | Need Help?? |
gargle has asked for the wisdom of the Perl Monks concerning the following question: My fellow monks, A stupid question perhaps, this stuff is bugging me for a while now. I tried the usual, I read the docs, I searched perlmonks, I googled... but to no avail. I try to access a log file on a testlink server but all I get is an empty string if I just do a 'get'. The weird thing is that if I fetch the log file in a temporary file I can read the file. This doesn't work:
The headers I get in the response object are:
This however does work:
In the info returned I find this as an extra:
What on earth am I missing? I don't want to use a temp file, I just want to access the log file by means of a simple $mech->content() or something similar (but no call to system or any backticks to invoke wget or curl).
-- if ( 1 ) { $postman->ring() for (1..2); }
Back to
Seekers of Perl Wisdom
|
|