Re: NSURLResponse expectedContentLength is -1
Re: NSURLResponse expectedContentLength is -1
- Subject: Re: NSURLResponse expectedContentLength is -1
- From: Scott Anguish <email@hidden>
- Date: Sun, 7 Sep 2003 22:49:35 -0400
I can't speak for certain, but I believe content-length as it is
current implemented only works with http/https sites.
On Sep 7, 2003, at 6:45 PM, Keith Renz wrote:
I am downloading a file from an FTP site using NSURLDownload. In my
NSURLDownload delegate method, download:didReceiveResponse:, I always
get a -1 for [response expectedContentLength]. From NSURLResponse.h, I
understand this means, "...there is no expectation that can be arrived
at regarding expected content length." All my FTP browsers (Transmit,
BBEdit, Finder (Go -> Connect to Server)) show a size for this file.
Why can't I get the size with NSURLDownload?
Thanks,
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.
_______________________________________________
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.