• 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: Parsing proxy exceptions list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing proxy exceptions list?


  • Subject: Re: Parsing proxy exceptions list?
  • From: Jeremy Wyld <email@hidden>
  • Date: Tue, 18 Apr 2006 10:59:35 -0700

CFNetwork also supports an asterisk wildcard in addition to the other three listed.

jeremy


On Apr 18, 2006, at 6:08 AM, Quinn wrote:

At 18:31 +0200 14/4/06, Tomas Zahradnicky wrote:
Is there some preferred way to tell whether an IP address should go through proxy or not or I have to assume that only entries like host.foo.com, 1.2.3.4, or foo.com could be there?

AFAIK there is no system provided mechanism to parse this array. I recommend that you file a bug requesting one.


<http://developer.apple.com/bugreporter/>

Please email the bug number to me so that I can keep an eye on it.

There are a couple of ways around this:

A. Download using CFNetwork instead of curl; CFNetwork will do this stuff for you automatically.

B. Parse the array yourself by hand.

Of these, option A is probably easier (surprisingly). If Apple's implementation is anything to go by, the code for option B is complicated.

As to what to expect in the proxies array, here's the list of things that Apple's code can handle (in order).

1. a specific host name

2. an IP address, including a subnet (using the standard "/" syntax)

3. a domain name, which bypasses anything 'within' that domain ("apple.com" will cause "www.apple.com" to bypass the proxy)

Finally, Apple's code also always bypasses "localhost", "127.0.0.1", and "::1" (the IPv6 loopback). It also has an option to bypass any single-label name.

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:
40apple.com


This email sent to email@hidden

_______________________________________________ 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: Parsing proxy exceptions list?
      • From: Tomas Zahradnicky <email@hidden>
References: 
 >Parsing proxy exceptions list? (From: Tomas Zahradnicky <email@hidden>)
 >Re: Parsing proxy exceptions list? (From: Quinn <email@hidden>)

  • Prev by Date: HTTPS and Web Services Core
  • Next by Date: Using scutil to turn on AppleTalk/set Proxies
  • Previous by thread: Re: Parsing proxy exceptions list?
  • Next by thread: Re: Parsing proxy exceptions list?
  • Index(es):
    • Date
    • Thread