• 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
Proxy servers vs localhost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

In a discussion thread about this issue, it was asserted that:
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

  • Follow-Ups:
    • Re: Proxy servers vs localhost
      • From: Josh Graessley <email@hidden>
  • Prev by Date: Re: Exception using custom input stream for NSURLRequest
  • Next by Date: Re: Proxy servers vs localhost
  • Previous by thread: Re: HTTPBodyStream without chunked encoding?
  • Next by thread: Re: Proxy servers vs localhost
  • Index(es):
    • Date
    • Thread