Re: Prevent NSURLConnection retry
Re: Prevent NSURLConnection retry
- Subject: Re: Prevent NSURLConnection retry
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Wed, 30 Nov 2011 16:13:04 +0000
On 30 Nov 2011, at 15:15, Jeff Johnson wrote:
> Unfortunately, -connection:willSendRequest:redirectResponse: is only called once (with nil redirectResponse, as usual). Could that be considered a bug?
That depends on how you look at it. Usually the willSendRequest delegate callback is associated with redirection, which clearly isn't happening in this case. OTOH, see below.
> I replaced it with some CFStream code that I already had. Which I seem to be doing more and more often with NSURLConnection...
Yeah, you need to start talking to a better class of server (-:
Seriously though, any time you hit something that causes you to switch from NSURLConnection to CFHTTPStream, please let us know by filing a bug.
<http://developer.apple.com/bugreporter/>
Our general goal is you guys to use our high-level APIs. Obviously we can't accommodate every buggy broken server out there, but it's good to at least know about them.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden