in reply to HTTP response: 400 Bad Request
Hello JoeJohnston,
I get similar results when I run your code. But note that the three calls to fetch do succeed — the die clauses are never entered — and the Fetch failed! ... message is actually just a warning generated during the fetch call. You can turn those warnings off as follows:
use File::Fetch; $File::Fetch::WARN = 0;
Sorry, I can’t explain why the File::Fetch module thinks (incorrectly) that the fetch operation has failed. But I can confirm that the three files in question are downloaded correctly: in each case the file downloaded by fetch is identical to the corresponding file downloaded in my browser (Google Chrome).
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTTP response: 400 Bad Request
by Mr. Muskrat (Canon) on Feb 01, 2016 at 22:57 UTC | |
by DennisJBell (Initiate) on Jul 22, 2017 at 19:46 UTC | |
|
Re^2: HTTP response: 400 Bad Request
by JoeJohnston (Novice) on Feb 01, 2016 at 05:02 UTC |