HttpWebRequest oHTTPReq = (WebRequest.Create(url) as HttpWebRequest); oHTTPReq.Method = methodName; oHTTPReq.ContentType = contentType; //xml //xmlRequest contains SEARCH Query String Byte[] byteXML = System.Text.Encoding.UTF8.GetBytes(xmlRequest); oHTTPReq.ContentLength = byteXML.Length; Stream oStream = oHTTPReq.GetRequestStream(); oStream.Write(byteXML, 0, byteXML.Length); oStream.Close(); oHTTPRes = oHTTPReq.GetResponse(); StreamReader oReader; oReader = new StreamReader(oHTTPRes.GetResponseStream(), System.Text.Encoding.UTF8); res = oReader.ReadToEnd(); oHTTPRes.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)