> On 28 Sep 2015, at 00:31, Mike Abdullah <[email protected]> wrote: > > >> On 27 Sep 2015, at 18:08, Gerriet M. Denkmann <[email protected]> wrote: >> >> I want to get some metadata for a remote file. >> >> Just seen in small print: “This method applies only to URLs that represent >> file system resources.” >> >> So this is not expected to work. What else can I do? > > Probably the best thing to do is to use NSURLSession to send a HEAD request > to the server, and pick the information you want out of the response headers.
Excellent. Just what I needed. Thanks a lot! One question though: The NSHTTPURLResponse allHeaderFields dictionary contains keys like: “Content-Length” and “Last-Modified”. Are these standardized or might other sites use other keys like “Modification-Date” or “Nbr-of-Bytes” ? Kind regards, Gerriet. _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
