• 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: NSHTTPURLResponse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSHTTPURLResponse


  • Subject: Re: NSHTTPURLResponse
  • From: Koen van der Drift <email@hidden>
  • Date: Mon, 7 Jul 2003 06:45:07 -0400

On Sunday, July 6, 2003, at 04:04 PM, Scott Anguish wrote:



NSURLDownload should return an error when it encounters anything like a 404. NSURLConnection on the other hand does give you the redirected content.

NSHTTPURLResponse will be the response from the server, without the data.

if you implement -download:willSendRequest:redirectResponse: (there is a known error in the doc narrative that refers to this as responseRequest: BTW) then you can get the returned NSURLResponse for the request, and check the type of the object, and if it is a NSHTTPURLResponse, then check the status values...


My mistake, I *am* using NSConnection, because it creates an NSData object, not a file on disk. I use this NSData object to create a new NSDocument. Is there a way to create an NSData object from NSURLDownload, or can it only create a file on disk?


- Koen.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSHTTPURLResponse
      • From: Scott Anguish <email@hidden>
References: 
 >Re: NSHTTPURLResponse (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Interapp
  • Next by Date: (no subject)
  • Previous by thread: Re: NSHTTPURLResponse
  • Next by thread: Re: NSHTTPURLResponse
  • Index(es):
    • Date
    • Thread