October 23, 2008

Use proxy settings from "Set up my proxy server" on Windows Mobile (C#)

The following code allows to retrieve xml with proxy details.

XmlDocument arg = new XmlDocument();
arg.LoadXml("<wap-provisioningdoc><characteristic-query type="\"CM_ProxyEntries\"/"></characteristic-query><wap-provisioningdoc><characteristic-query type="\"></characteristic-query>");
XmlDocument prox = ConfigurationManager.ProcessConfiguration(arg,

Unfortunately if your proxy requires username and password this approach will return only username.

No comments: