On Mar 5, 2012, at 11:21 AM, 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.
Well that sucks. I believe a more correct response would have been 407Proxy Authentication Required, but the vendor probably wanted a “prettier” login screen. > 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. Presumably the firewall sent back a redirect to the original response, which pointed to its magic login page. So that’s one way to tell something’s up. Another is that the Content-Type for the end response is text/html instead of application/json. I don’t know if there’s any de-facto standard for being able to detect firewall/router login pages. iOS and Lion seem to be able to do it. I heard something about a recent proposed standard for logins to WiFi hot-spots, which may or may not be relevant. This question is more relevant to the macnetworkprog list. I would recommend reposting it there. —Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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