Reputation: 4881
I am using XmlDocument to open a remote XML document
string apiURL = Settings.Settings.URLBaseAPI + "user.php";
apiURL = apiURL + "?u=" + Settings.Settings.ForumUsername
+ "&p=" + MD5Tool.GetMD5Hash(Settings.Settings.ForumPassword)
+ "&mode=token";
doc.Load(apiURL);
Is there anyway to set the user agent for the internet access performed to retrieve the XML document?
Upvotes: 2
Views: 807