Re: NSURLRequests and Firewalls
Re: NSURLRequests and Firewalls
- Subject: Re: NSURLRequests and Firewalls
- From: Mike Abdullah <email@hidden>
- Date: Mon, 05 Mar 2012 20:13:32 +0000
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 (email@hidden)
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:
This email sent to email@hidden