Re: Setting Web Proxy programmatically
Re: Setting Web Proxy programmatically
- Subject: Re: Setting Web Proxy programmatically
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 18 Mar 2008 13:59:11 +0100
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 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@hidden
>
wrote:
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)
CFSocket will take care of proxy handling before setting up a new
connection.
For BSD sockets you need to have all information and need to work
on proxy
manually.
If u have to use BSD sockets, then have ur own proxy settings in your
application preference pane and use them.
Regards,
Basavaraj
On Tue, Mar 18, 2008 at 2:22 PM, parag vibhute <email@hidden
>
wrote:
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden