Re: NSURLDownload and FTP Proxies
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