testew - Forside
String strLSID = Request["lsid"].ToString(); XmlDocument xml = new XmlDocument(); // Retrieve data using the API and the session id from above HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://MYBOMGARsite.mysite.com/api/reporting.ns?username=username&password=password&generate_report=SupportSession&lsid=) + strLSID ); request.UserAgent = "Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)"; request.Method = "GET"; HttpWebResponse webResponse = (HttpWebResponse)request.GetResponse(); if (webResponse.StatusCode != HttpStatusCode.OK) { // deal with errors here } else { Stream dataStream = webResponse.GetResponseStream(); xml.Load(dataStream); // Now you have a nice xml document with all the session info to do with as you please }
 
Panel title

© 2017 testew

Antal besøg: 74

Lav en gratis hjemmeside på Freewebsite-service.com

Editing

-0,28668594360352sekunder