Re: NSURLRequests and Firewalls
Re: NSURLRequests and Firewalls
- Subject: Re: NSURLRequests and Firewalls
- From: Alex Zavatone <email@hidden>
- Date: Mon, 05 Mar 2012 16:01:17 -0500
Yeah, at this facility, I get a web page asking to log in with auth parameters, so it's going to be interesting.
Using the simulator, even if I enter the auth parameters in Safari, I'll run the app again from Xcode and get the same HTML telling me that permission was denied and asking for auth params. If I switch to the guest network and run the app in the simulator form Xcode, I can grab any external file without an issue.
Joy.
On Mar 5, 2012, at 3:19 PM, Erik Stainsby wrote:
> I think generally a firewall ought to return an http status code of 302 redirected which you could probably key off for a login handler.
>
> Time Dwarf,
> Roaring Guy
>
> On 2012-03-05, at 11:21 AM, Alex Zavatone <email@hidden> 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.
>>
>> 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.
>>
>> Thanks in advance.
>> - Alex Zavatone
>>
>> _______________________________________________
>>
>> 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
_______________________________________________
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