Re: CFProxySupportTool sample and CFNetworkCopyProxiesForAutoConfigurationScript API change?
Re: CFProxySupportTool sample and CFNetworkCopyProxiesForAutoConfigurationScript API change?
- Subject: Re: CFProxySupportTool sample and CFNetworkCopyProxiesForAutoConfigurationScript API change?
- From: "Alfred J. Eisenberg" <email@hidden>
- Date: Tue, 29 Jul 2008 11:20:21 -0400
- Thread-topic: CFProxySupportTool sample and CFNetworkCopyProxiesForAutoConfigurationScript API change?
Title: Re: CFProxySupportTool sample and CFNetworkCopyProxiesForAutoConfigurationScript API change?
Quinn, Thanks much for the response! I assume that the intention is not to have the CFError Parameter?
It probably wasn’t clear from my post, but I did pass the parameter and finally got farther, so here’s what I found so far.
- For CFNetworkCopyProxiesForAutoConfigurationScript, I still couldn’t get it to work. It returns NULL for the list of proxies when run as in the readme.
- I tried the CFNetworkCopyProxiesForAutoConfigurationScriptURL API and that seems to work fine as it returns me a list of two proxies as described in the readme. For me this is fine since I would probably use this one anyway instead of going to get the pac file myself.
- If I don’t specify any proxies or PAC file manually and use the CFNetworkCopyProxiesForURL, the list of proxies returned is always terminated with an entry of type kCFProxyTypeNone
- Using the CFNetworkCopyProxiesForAutoConfigurationScriptURL API does not terminate the list of proxies with the entry in number 3 above, just the proxies.
So, it works ok if I use the URL version, but not when the script is passed in with the string for the PAC, unless there’s some thing it doesn’t like about the string. It looked ok to me in the debugger, will look closer.
The only thing that’s not obvious is that when the APIs return a list of proxies, there is no “none” entry, but when there is no proxy list or just a PAC file, there is always the “none” entry. And the CFNetworkCopyProxiesForAutoConfigurationScript returns NULL when I’m expecting a list of two proxies, so either it’s a bug in the API or it doesn’t like my PAC string, I need to check it closer for some potential bad characters maybe.
Thanks
alf
On 7/29/08 8:42 AM, "Quinn" <email@hidden> wrote:
At 12:41 +0100 29/7/08, Quinn wrote:
>I'm still trying to determine the extent of the problems with the
>Xcode 3.1 Mac OS X 10.5 SDK. It could be just this one routine, or
>it could be more widespread. I'll post more info once I have more
>time to investigate this.
The good news is that, after some reasonably extensive testing, I
found no other major differences between the Mac OS X 10.5 SDK in
Xcode 3.1 and the one in Xcode 3.0.
*phew*
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:
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