laziness, impatience, and hubris | |
PerlMonks |
•Re: Re: Checking for an existing URLby merlyn (Sage) |
on Sep 29, 2002 at 15:22 UTC ( [id://201557]=note: print w/replies, xml ) | Need Help?? |
I thing you should try HEAD instad of GET. If all you want to know is whether the URL is fine, why would you download the whole document? :-)Because some servers have been shown to return an error for HEAD, but a real document for GET. So you have to do both. Try HEAD first, but if it fails, retry with GET. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|