On 5 Mar 2012, at 19:21, Alex Zavatone wrote:

> I just found out why some JSON parsing was failing, the data returned from 
> the NSURLRequest was the HTML for our firewall authentication page.

You mean NSURLConnection right? URL requests themselves are purely data 
objects, they don't do any networking.
> 
> Is there an established practice or set of documents on the iOS Dev Lib that 
> shows how to handle this?  I scanned the sample code and found nothing.  
> Searching teh googles for NSURL and firewall doesn't return much either.

NSURLConnection happily returns to its delegate any valid HTTP response it 
receives. It is your responsibility to check that the URL and error code etc. 
are as expected from methods like -connection:didReceiveResponse: and 
-connection:willSendRequest:redirectResponse:


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to