Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-29-2008, 04:14 AM   #1 (permalink)
New Member
 
Join Date: Oct 2008
Posts: 1
Default Programmatically set proxy (for both wifi and gprs/umts)

Hi,
i'm new to iphone developing. I need to write an application which programmatically setup a proxy for all the available connections (that said, gprs/umts and wifi).

Now, the standard Settings.app (from what i understood) sets the proxy only for wifi connection. And the CFNetworkCopySystemProxySettings returns just that (and, moreover, i couldnt find any function to save proxy settings)

So my questions are :

1) is there any API i can use to read / write proxy settings for all the available connection types (network locations) ?

2) if not, there's a way to write directly to /private/var/Preferences/SystemConfiguration/preferences.plist (this is the file which holds all the data) ? From my experiments, file can be read but not be written to using deserialization / serialization (maybe need suid....).

Note that this tool is being developed for non-jailbroken iphones.....

regards,
valerio
valerino is offline   Reply With Quote
Old 11-29-2010, 12:55 AM   #2 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 362
Default

Quote:
Originally Posted by valerino View Post
Hi,
i'm new to iphone developing. I need to write an application which programmatically setup a proxy for all the available connections (that said, gprs/umts and wifi).

Now, the standard Settings.app (from what i understood) sets the proxy only for wifi connection. And the CFNetworkCopySystemProxySettings returns just that (and, moreover, i couldnt find any function to save proxy settings)

So my questions are :

1) is there any API i can use to read / write proxy settings for all the available connection types (network locations) ?

2) if not, there's a way to write directly to /private/var/Preferences/SystemConfiguration/preferences.plist (this is the file which holds all the data) ? From my experiments, file can be read but not be written to using deserialization / serialization (maybe need suid....).

Note that this tool is being developed for non-jailbroken iphones.....

regards,
valerio
Hi,

Can you please share the solution, for programmatically setting the network connection parameters (proxy and other setting ..)

Thank you.
mpramodjain is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 590
21 members and 569 guests
Andy8888, Arfan, armmzz, bignoggins, BrianSlick, ckgni, devangvyas, Duncan C, Hito_kun, kvu, learningtocode, linkmx, LiquidFire, MarcoAlmeida, Monstertaco, oceanlablight, soonw29, sudama, Vineesh
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,775
Threads: 89,203
Posts: 380,588
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Andy8888
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:45 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0