Re: Checking if NSURL exists
Re: Checking if NSURL exists
- Subject: Re: Checking if NSURL exists
- From: Uli Kusterer <email@hidden>
- Date: Tue, 06 Aug 2013 14:50:16 +0200
On Aug 5, 2013, at 8:41 PM, Jerry Krinock <email@hidden> wrote:
> As Jens explained, your does not have a clean answer.
>
> Doing a HEAD request is "optimal" (huge reduction in network traffic) if you can accept NO answers from a tiny percentage of sites which will won't return data to a HEAD request, even though they will return data to a GET.
Apart from servers not supporting HEAD requests, also keep in mind that some servers don't correctly do 404 pages and instead redirect any unknown page to the home page (or worse, just display the home page). So your code might not even be able to check whether a URL exists, but only if there is a server at that URL. For most uses that isn't a problem, but for some it is. The web is a crazy place.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden