HttpWebRequest req = (HttpWebRequest)WebRequest.Create(_Url);
string proxy = null;
string data = String.Format(_Variables);
byte[] buffer = Encoding.UTF8.GetBytes(data);
req.Method = "POST";
req.ContentType = "text/html";
//req.ContentType = "application/x-www-form-urlencoded";
req.ContentLength = buffer.Length;
req.Proxy = new WebProxy(proxy, true); // ignore for local addresses
req.CookieContainer = new CookieContainer();
try
{
if(_Cookie != null)
}
Stream reqst = req.GetRequestStream(); // add form data to request stream
reqst.Write(buffer, 0, buffer.Length);
//reqst.Flush();
reqst.Close();
HttpWebResponse res = (HttpWebResponse)req.GetResponse();
string contentRange = res.Headers["Content-Range"];
Stream resst = res.GetResponseStream();
StreamReader sr = new StreamReader(resst);
m_ResponseString = sr.ReadToEnd();
catch(ProjException ProjEx)
throw new ProjException("HttpRequest.HttpRequest() - Proj Ex", ProjEx);
catch(Exception E)
throw new ProjException("HttpRequest.HttpRequest() - Norm Ex", E);