• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLResponse expectedContentLength is -1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSURLResponse expectedContentLength is -1 (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Techniques for thread communication
  • Next by Date: Does anyone have sample code for writing/updating multi-valued properties to the address book?
  • Previous by thread: Re: NSURLResponse expectedContentLength is -1
  • Next by thread: NSDocument -init vs. -initWithContentsOfFile:ofType: (re post)
  • Index(es):
    • Date
    • Thread