HttpWebRequest 클래스를 이용한 POST 전송하기
public static string postXMLHTTP(string sURL, string sParam, string requestType) { string contentType = string.Empty; if (requestType.Equals("UTF-8")) contentType = "text/xml;charset=UTF-8"; else postXMLHTTP(sURL, sParam); try { HttpWebRequest HttpRequest = (HttpWebRequest)WebRequest.Create(sURL); HttpRequest.Method = "POST"; string postData = sParam; System.Text.ASCIIEncoding encoding = new Sys..
프로그래밍/ASP.NET
2011. 4. 27. 10:11