In article <BB82C24B96689DBA9810.0.1.2>,
[email]slavinshearsay.demon.co.uk[/email]localhost (Simon Slavin) wrote:
If you don't know if it is, then it's not. Think about it: You're> I'm making use of stringWithContentsOfURL in a client which does
> repeated downloading of an RSS feed (don't worry -- I don't
> thrash the server). It's really useful and considerably
> simplifies my application. However, the person who runs the site
> my application looks at has pointed out that my client should be
> checking the 'Last-Modified' header.
> I don't know if it is or not. Is it ? If not, how much of an
> HTTP client do I have to write to do this correctly ?
passing an NSURL that you want loaded into the NSString. If you didn't
tell the NSURL at some point what the last modified date is, there's no
way it can know and therefore no way it can check.
I'm not sure what the best solution is, although NSURL's
-setProperty:ForKey looks mighty tempting. However you may need to
consider using WebKit for this-- no need to write an HTTP client when
Apple has already given you Safari's guts for free, eh?
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 1.4: Best cleanup yet, gets files other tools miss.