You can use DMProcessConfigXML api to configure a large number of settings on the device. I think you can use the CM_ProxyEntries configuration service provider , which allows you to create and delete proxy settings. One approach might be to manually configure the wifi proxy and then use DMProcessConfigXML to request settings that provide you with xml that you can use (with multiple settings) to program it programmatically.
source
share