Re: Parsing proxy exceptions list?
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