Re: Setting Web Proxy programmatically

2008-03-20 Thread parag vibhute
Hi Jean Yes my tool is running enough privileges. As I said, my tool is successfully updating dynamic store which require root authentication. But I am not successful in updating persistant store. Thanks, Palav On Thu, Mar 20, 2008 at 6:31 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > > L

Re: Setting Web Proxy programmatically

2008-03-20 Thread Jean-Daniel Dupas
Le 20 mars 08 à 13:26, parag vibhute a écrit : I am glad to say that I am able to write the code which can set all four keys releated to PAC file URL. As suggested, I used System Configuration framework. But I think System Configuartion framework (& scutil command) only accesses the dynami

Re: Setting Web Proxy programmatically

2008-03-20 Thread parag vibhute
I am glad to say that I am able to write the code which can set all four keys releated to PAC file URL. As suggested, I used System Configuration framework. But I think System Configuartion framework (& scutil command) only accesses the dynamic store. I went through PDFs but not found useful info t

Re: Setting Web Proxy programmatically

2008-03-18 Thread parag vibhute
Following is a part of preferences.plist: Proxies AppleProxyConfigurationSelected 1 ExcludeSimpleHostnames 0 FTPPassive 1 HTTPEnable 1

Re: Setting Web Proxy programmatically

2008-03-18 Thread Jean-Daniel Dupas
And the kSCPropNetProxiesProxyAutoConfigEnable key does not do that? Le 18 mars 08 à 16:50, parag vibhute a écrit : Thanks for URL. I went through code & system configuation framework. There I found that you can set HTTP(HTTPS etc.) proxy and also PAC file URL (using kSCPropNetProxiesProxyA

Re: Setting Web Proxy programmatically

2008-03-18 Thread parag vibhute
Thanks for URL. I went through code & system configuation framework. There I found that you can set HTTP(HTTPS etc.) proxy and also PAC file URL (using kSCPropNetProxiesProxyAutoConfigURLString key) but I want to configure proxies using PAC file. When I analyzed network pane of system preferences

Re: Setting Web Proxy programmatically

2008-03-18 Thread Jean-Daniel Dupas
have a look at the MoreSCF sample on ADC site (http://developer.apple.com/samplecode/MoreSCF/ ). There is a bunch of helper to retreive and change configuration. Le 18 mars 08 à 14:38, parag vibhute a écrit : Thank for reply. As you said, they are accessible but are they writable? Through

Re: Setting Web Proxy programmatically

2008-03-18 Thread parag vibhute
Thank for reply. As you said, they are accessible but are they writable? Through search, I think they are only readable or for getting notification. But my requirement is to change it. Thanks, Palav On Tue, Mar 18, 2008 at 6:29 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > As already said

Re: Setting Web Proxy programmatically

2008-03-18 Thread Jean-Daniel Dupas
As already said by Basavaraj, all proxy settings are accessible using the "SystemConfiguration" Framework. Le 18 mars 08 à 13:37, parag vibhute a écrit : My requirement is to set proxy via selecting "Using a PAC file" in Configure proxy drop-down button of Network pane of system preference

Re: Setting Web Proxy programmatically

2008-03-18 Thread parag vibhute
My requirement is to set proxy via selecting "Using a PAC file" in Configure proxy drop-down button of Network pane of system preferences. I have to achieve this programmatically. How to do this? Thanks, Palav On Tue, Mar 18, 2008 at 2:39 PM, Cocoa Developer <[EMAIL PROTECTED]> wrote: > > Hi Pa

Re: Setting Web Proxy programmatically

2008-03-18 Thread Cocoa Developer
Hi Palav, Yes it is possible. You need to use SystemConfiguration framework. You can get all proxy information except authentication. So don't try to get proxy information from network pane. Its useless. If you want to use network pane in system preference then use CFSocket. (Best option) CFSocke

Setting Web Proxy programmatically

2008-03-18 Thread parag vibhute
Hi all, My requirement is to set Web Proxy & Secure Web proxy which appears in Network pane of System Preferences. I want to achieve this programmatically. Is this possible? Which framework should I use? Thanks, Palav -- There are many things in your life that will catch your eye but only a