iphone - Programmatically set (System-wide) proxy settings?
Posted
by Andrew
on Stack Overflow
See other posts from Stack Overflow
or by Andrew
Published on 2009-02-12T20:35:24Z
Indexed on
2010/04/12
16:53 UTC
Read the original article
Hit count: 727
I am new to iPhone development, so I'm sorry if this is a stupid question. I am developing an application whose purpose will be to route all iPhone activity through my company's proxy.
Is there a way to programmatically set system-wide proxy settings in the iPhone (which will also take effect on the 3G connection)?
I know there is a way to manually set proxy settings for each wifi connection. Detecting new networks and setting the proxy on them would be acceptable. However, I need to also be able to set the proxy on the 3G connection.
Also, bonus: Is there a way to programmatically change the "Restrictions" settings?
If anyone has any tips or can point me in the right direction, I would appreciate it. Thanks.
EDIT: Please understand that this is for a legitimate purpose. Apple has to approve app store additions, so it's not like I'm trying to spread a virus. Please, constructive answers only.
© Stack Overflow or respective owner