• 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
-[NSURLResponse expectedContentLength] returns -1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSURLResponse expectedContentLength] returns -1


  • Subject: -[NSURLResponse expectedContentLength] returns -1
  • From: Jonathan del Strother <email@hidden>
  • Date: Wed, 18 Oct 2006 18:30:06 +0100

-[NSURLResponse expectedContentLength] on files from my Apache2.2 web server always returns -1.

Here's the headers:

curl -I http://myhost.com/favicon.ico
HTTP/1.1 200 OK
Date: Wed, 18 Oct 2006 17:25:43 GMT
Server: Apache/2.2.2 (Unix) DAV/2 SVN/1.4.0
Last-Modified: Mon, 09 Oct 2006 16:03:33 GMT
ETag: "5062e6a-37e-f6b29f40"
Accept-Ranges: bytes
Content-Length: 894
Content-Type: image/x-icon

Why can't NSURLResponse figure out the content length from that?


Jon _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Getting an NSOutlineView Item's parent
  • Next by Date: [SOLVED] How do I load a directory into a document-based app?
  • Previous by thread: [SOLVED] How do I load a directory into a document-based app?
  • Next by thread: Waiting for NSMetadataQuery to finish?
  • Index(es):
    • Date
    • Thread