Programmatically changing network proxy settings on the Mac

Discussion in 'Python' started by arunasunil@gmail.com, Feb 11, 2009.

  1. Guest

    Hi,

    Anybody have suggestions of how network proxy settings can be changed
    programmatically on the Mac, Tiger and Leopard. Are there any helpful
    python api's that can be used.

    Thanks
    Sunil
    , Feb 11, 2009
    #1
    1. Advertising

  2. OS X is POSIX/UNIX system so your basic plan of going about things:
    1. Learn what proxy/network subsystem Tiger uses
    2. Learn what proxy/network subsystem Leopard uses (same as 1., or has
    it changed?)
    3. Based on 1 and 2 learn the config file names and locations.
    4. Based on 3 you will determine if the file is text or xml format so
    learn file processing for whichever one
    5. Read the config file, Make some changes in OS X, read the config
    file and compare changes.
    6. Programatically script changes to those config file(s).
    7. Learn if any service/daemon needs to be restarted or if an
    interface needs to be brought down/up to bring in those changes to the
    config file.
    8. Script in what you learned in 7.
    9. Finished.

    2009/2/11 <>:
    > Hi,
    >
    > Anybody have suggestions of how network proxy settings can be changed
    > programmatically on the Mac, Tiger and Leopard. Are there any helpful
    > python api's that can be used.
    >
    > Thanks
    > Sunil
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >
    Python Nutter, Feb 12, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Siegfried Heintze
    Replies:
    0
    Views:
    2,269
    Siegfried Heintze
    Oct 24, 2005
  2. =?Utf-8?B?UmFtb24gZGUgS2xlaW4=?=

    Programmatically change IE proxy settings

    =?Utf-8?B?UmFtb24gZGUgS2xlaW4=?=, Jan 17, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    4,256
    =?Utf-8?B?UmFtb24gZGUgS2xlaW4=?=
    Jan 17, 2006
  3. leeanne
    Replies:
    0
    Views:
    1,858
    leeanne
    Sep 24, 2008
  4. donet programmer
    Replies:
    3
    Views:
    1,534
    Gregory A. Beamer
    Nov 20, 2009
  5. Flavio

    Changing internet proxy settings

    Flavio, Apr 30, 2005, in forum: Javascript
    Replies:
    3
    Views:
    92
    Thomas 'PointedEars' Lahn
    May 10, 2005
Loading...

Share This Page