lexthoonen has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to do this:
$data = "http://www.peng.es/wetter/wetter.txt";
$lookup = HTTP::Request->new('GET' => "$data");
$response = $ua->request($lookup);
@lines = split (/\n/, $response->content);
and the result is a 404 from the peng.es site.
Although the file is accessible:
http://www.peng.es/wetter/wetter.txt
What could cause this?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to troubleshoot a http::request 404 problem
by Your Mother (Archbishop) on Feb 19, 2011 at 23:31 UTC | |
by lexthoonen (Initiate) on Feb 23, 2011 at 08:27 UTC | |
by lexthoonen (Initiate) on Feb 23, 2011 at 08:38 UTC | |
by lexthoonen (Initiate) on Feb 23, 2011 at 08:43 UTC | |
|
Re: how to troubleshoot a http::request 404 problem
by roboticus (Chancellor) on Feb 19, 2011 at 22:48 UTC | |
by Marshall (Canon) on Feb 20, 2011 at 01:13 UTC | |
by roboticus (Chancellor) on Feb 20, 2011 at 07:48 UTC | |
|
Re: how to troubleshoot a http::request 404 problem
by Anonymous Monk on Feb 19, 2011 at 23:43 UTC |