Re: [Pyobjc-dev] CFNetworkCopyProxiesForAutoConfigurationScript not available?
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2009-04-12 11:38:12
|
Mani, I just commited a framework wrapper for CFNetwork: pyobjc-framework- CFNetwork. This also wraps the function CFNetworkCopyProxiesForAutoConfigurationScript. These bindings are not entire complete yet, I haven't implemented the C code that's needed for the asynchronous interface yet (such as CFNetworkExecuteProxyAutoConfigurationScript). The bindings are not yet published on pypi, you'll have to download them from the subversion repository if you want to use them. The bindings require PyObjC 2.2b1 (or later), the setup.py requires pyobjc- framework-Cocoa from the repository as well but should work with 2.2b1 as well if you edit setup.py. Ronald On 30 Mar, 2009, at 20:43, Mani Ghasemlou wrote: > Hi all, > CFNetworkCopyProxiesForAutoConfigurationScript is a new API available > in 10.5: http://developer.apple.com/releasenotes/Networking/RN-CFNetwork/index.html#/ > /apple_ref/doc/uid/TP40000990-DontLinkElementID_3 > > However, I don't think it is supported by PyObjC (doesn't show up in > the namespace after importing Foundation or CoreFoundation). > > Any way I can work around this? > > I have an app built using PyObjC, using Python's urllib2 for HTTP > access. urllib2 handles "manual" proxies as configured in System > Preferences, but not PAC file proxy configurations. I would like to > support PAC files in my application and > CFNetworkCopyProxiesForAutoConfigurationScript seemed like the answer, > but now I'm struggling. > > Any ideas greatly appreciated. > > Cheers, > Mani > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |