Re: Determining if a url exists
Re: Determining if a url exists
- Subject: Re: Determining if a url exists
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 6 Feb 2008 23:49:06 -0700
On Feb 6, 2008, at 10:47 PM, Matthew Delves wrote:
An app that I'm writing involves fetching of rss feeds. To get
around caching I have been appending ?20080207 (or whatever the
current date is) to the URL. Unfortunately some server's don't like
this and will return a 404. Is there a way using cocoa to determine
if a URL will return a 404?
Not without actually doing it, no. You could empty the cache prior to
the fetch, though, by calling -[NSURLCache removeAllCachedResponses].
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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