• 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: Scott Anguish <email@hidden>
  • Date: Tue, 8 Jul 2003 01:12:03 -0400

On Monday, July 7, 2003, at 9:26 PM, Koen van der Drift wrote:


On Monday, July 7, 2003, at 02:16 PM, Scott Anguish wrote:

it can only create a file on disk (that's the purpose of NSURLDownload, to download it to disk)

If you're using NSURLConnection, just implement -connection:willSendRequest:redirectResponse: and test the NSURLResponse there.

I tried that, as described in the documentation, but this method never gets called.


Do you have the signature correct? it does get called.

Maybe this method only gets called with specific returns (eg 404)?

Anytime there is a redirect, or the URL is changed to its canonical form it should be called.

I still can see that the website gives an error message, maybe it's not done through a redirect, which might explain why the method never gets called.

That's possible... are you getting an error back from the server? If you want to send me some code off-list, I'd be happy to look at it (no binaries please..)


Maybe I should use NSURLHandle or CURLHandle - would that be more useful in this case?


Nope.. this should work...
_______________________________________________
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: NSHTTPURLResponse (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: gcc 3.3, Precompiled Headers and Project Builder
  • Next by Date: Re: Drawing speed
  • Previous by thread: Re: NSHTTPURLResponse
  • Next by thread: Cocoa Command Line Application
  • Index(es):
    • Date
    • Thread