Proxy servers vs localhost
Proxy servers vs localhost
- Subject: Proxy servers vs localhost
- From: Jens Alfke <email@hidden>
- Date: Thu, 16 Feb 2012 12:41:07 -0800
Some developers using a library I work on report that it doesn’t work properly if the iOS device is configured to use an HTTP proxy. The functionality of this library involves making HTTP connections over the loopback interface (i.e. to http://127.0.0.1:5984/...), and apparently NSURLConnection incorrectly forwards those requests to the proxy server instead of handling them locally, which of course fails.
NSURLConnection which RESTOperation.m uses sends *everything* including localhost to the proxy server. As far as I can tell this is just a silly bug in the apple libraries. The only solution I know is to use CFURLConnection instead! Is this true? If so, I’d need to rewrite a bunch of code to work around this :( Is there a better solution?
—Jens
|
_______________________________________________
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