Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing proxy exceptions list?



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:
http://lists.apple.com/mailman/options/macnetworkprog/jwyld% 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: http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Parsing proxy exceptions list? (From: Tomas Zahradnicky <email@hidden>)
 >Re: Parsing proxy exceptions list? (From: Quinn <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.