Re: NSURLResponse expectedContentLength is -1
Re: NSURLResponse expectedContentLength is -1
- Subject: Re: NSURLResponse expectedContentLength is -1
- From: Keith Renz <email@hidden>
- Date: Mon, 8 Sep 2003 00:11:00 -0400
On Sunday, September 7, 2003, at 10:49 PM, Scott Anguish wrote:
I can't speak for certain, but I believe content-length as it is
current implemented only works with http/https sites.
I wonder why? The docs say http, https, ftp and file is supported. I
guess not fully. I'm currently using NSString stringWithContentsOfURL:
to get the file's parent directory's contents (it's quite small, maybe
30 files) and parsing the string to get the file's size. It seems like
there ought to be a better way -- like expectedContentLength. I think
I'll file a bug report and ask for this.
Thanks for the reply.
Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.