Re: Parsing proxy exceptions list?
Re: Parsing proxy exceptions list?
- Subject: Re: Parsing proxy exceptions list?
- From: Tomas Zahradnicky <email@hidden>
- Date: Thu, 20 Apr 2006 15:01:52 +0200
Hi guys,
thanks for your replies. I have filed the bug <rdar://4520927> as requested.
All the best,
Tomas
At 10:59 -0700 4/18/06, Jeremy Wyld wrote:
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:
...snip...
This email sent to email@hidden
At 14:08 +0100 4/18/06, 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
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
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