• 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: NSURLDownload and FTP Proxies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLDownload and FTP Proxies


  • Subject: Re: NSURLDownload and FTP Proxies
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Thu, 16 Jun 2011 09:28:45 -0700

On 16 Jun 2011, at 08:13, Elliott wrote:

> On that last question I meant to ask, does it support HTTP proxies with username and password and also SOCKS proxies?

NSURLConnection supports SOCKS for HTTP.

NSURLConnection supports HTTP proxies for HTTP, with or without authentication.  There is, however, one gotcha on the current versions of iOS: the proxy user name and password is stored in a slice of the keychain that your app doesn't have access to, so it must handle proxy authentication challenges.  See the AdvancedURLConnections sample code for an example of how to do this.

<http://developer.apple.com/library/ios/#samplecode/AdvancedURLConnections/>

Technically this is also required on the Mac (because the pre-configured proxy user name and password might be wrong), but in practice that's not such a big deal.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSURLDownload and FTP Proxies (From: Elliott <email@hidden>)

  • Prev by Date: Re: NSURLDownload and FTP Proxies
  • Next by Date: Re: NSURLDownload and FTP Proxies
  • Previous by thread: Re: NSURLDownload and FTP Proxies
  • Next by thread: URL filtering / IP Filter NKE
  • Index(es):
    • Date
    • Thread