Per Process HTTP Proxy

  • Is it possible to instruct a Cocoa application to use a HTTP proxy,
    defined in the app by the user, and not setup in Network Preferences?
    This would be useful for certain services/applications e.g. a special
    webkit app.

    I had a look at the System Configuration framework, but its very
    confusing...  I can retrieve proxy information from the dynamic store,
    but this is not what I want.  Is there a way in the framework to
    define a set of key-values just for the running process to use, so
    WebKit, NSURL, etc. use the custom proxy values?

    Any info appreciated.  Thanks.

    Regards,
    Simon
  • On Aug 31, 2007, at 11:14 AM, Simon Liu wrote:

    > Is it possible to instruct a Cocoa application to use a HTTP proxy,
    > defined in the app by the user, and not setup in Network Preferences?

    No. However, if you have to do this, then you could use an alternate
    URL loader, such as CURL, instead of NSURLConnection/NSURLDownload.

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • > No. However, if you have to do this, then you could use an alternate
    > URL loader, such as CURL, instead of NSURLConnection/NSURLDownload.
    >

    Drat!  I'm really looking for a solution for a WebKit based app... for
    example, you might have a hybrid app which focuses on a certain
    web-site, but some users in some countries may need to access that
    web-site via a HTTP proxy server.  Other stuff such as normal web
    browsing won't need a proxy, which is why a user would not set up
    anything in their Network preferences.
previous month august 2007 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today