• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLRequests and Firewalls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSURLRequests and Firewalls
      • From: Alex Zavatone <email@hidden>
References: 
 >Re: How are views supposed to reload after being nillified by memory warnings? (From: Matt Neuburg <email@hidden>)
 >Re: How are views supposed to reload after being nillified by memory warnings? (From: David Duncan <email@hidden>)
 >NSURLRequests and Firewalls (From: Alex Zavatone <email@hidden>)

  • Prev by Date: NSURLRequests and Firewalls
  • Next by Date: Convert PDF CGContextRef to NSView for hi-res printing
  • Previous by thread: NSURLRequests and Firewalls
  • Next by thread: Re: NSURLRequests and Firewalls
  • Index(es):
    • Date
    • Thread