difference between httpwebrequest and webrequest on XML over http
difference between httpwebrequest and webrequest when sending XML reuqest over http.

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://test.securepay.com.au/xmlapi/periodic");
			byte[] byteStream;
			byteStream = System.Text.Encoding.UTF8.GetBytes(sww.ToString());
			request.Method = "POST";
			request.ContentType = "application/x-www-form-urlencoded";
			request.ContentLength = byteStream.LongLength;
			using (Stream swriter = request.GetRequestStream())
			{
				swriter.Write(byteStream, 0, (int)request.ContentLength);
				swriter.Flush();
			}
			HttpWebResponse resp = (HttpWebResponse)request.GetResponse();
			string respStr = "";
			if (request.HaveResponse)
			{
				if (resp.StatusCode == HttpStatusCode.OK || resp.StatusCode == HttpStatusCode.Accepted)
				{
					StreamReader respReader = new StreamReader(resp.GetResponseStream());
					respStr = respReader.ReadToEnd(); // get the xml result in the string object              
				}
			}
difference between httpwebrequest and webrequest on XML over http
===

difference between httpwebrequest and webrequest when sending XML reuqest over http.

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://test.securepay.com.au/xmlapi/periodic");
			byte[] byteStream;
			byteStream = System.Text.Encoding.UTF8.GetBytes(sww.ToString());
			request.Method = "POST";
			request.ContentType = "application/x-www-form-urlencoded";
			request.ContentLength = byteStream.LongLength;
			using (Stream swriter = request.GetRequestStream())
			{
				swriter.Write(byteStream, 0, (int)request.ContentLength);
				swriter.Flush();
			}
			HttpWebResponse resp = (HttpWebResponse)request.GetResponse();
			string respStr = "";
			if (request.HaveResponse)
			{
				if (resp.StatusCode == HttpStatusCode.OK || resp.StatusCode == HttpStatusCode.Accepted)
				{
					StreamReader respReader = new StreamReader(resp.GetResponseStream());
					respStr = respReader.ReadToEnd(); // get the xml result in the string object              
				}
			}