Re: getting a nsurl file size

2012-01-29 Thread Eric Smith
Charles, Works like a charm. Thank you! Eric On Jan 28, 2012, at 11:28 PM, Charles Srstka wrote: > On Jan 29, 2012, at 12:21 AM, Ken Thomases wrote: > >> * The keys that are valid for that method are those listed in the NSURL >> documentation. They may bear no relation to HTTP response hea

Re: getting a nsurl file size

2012-01-29 Thread Eric Smith
The getResource... method returns YES whether I pass @"content-length" or NSURLFileSize (I tried that one first). Eric On Jan 28, 2012, at 10:21 PM, Ken Thomases wrote: > On Jan 28, 2012, at 11:53 PM, Eric Smith wrote: > >> I'm trying to determine the size of a file on a server. If I send th

Re: getting a nsurl file size

2012-01-28 Thread Charles Srstka
On Jan 29, 2012, at 12:21 AM, Ken Thomases wrote: > * The keys that are valid for that method are those listed in the NSURL > documentation. They may bear no relation to HTTP response header fields. > So, I see no reason to believe that "content-length" is a valid key. Have > you tried NSURL

Re: getting a nsurl file size

2012-01-28 Thread Ken Thomases
On Jan 28, 2012, at 11:53 PM, Eric Smith wrote: > I'm trying to determine the size of a file on a server. If I send the > following message to an NSURL named "path", I get: > > [path getResourceValue:&value forKey:@"content-length" error:&error]; > > value comes back nil. Two things: * Did t