set http = Server.CreateObject("Microsoft.XMLHTTP")
Http.Open "GET", URL,false
Http.Send
getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
各位大哥大姐,帮把这段代码改成C#版的,谢谢了.在线等.
Http.Open "GET", URL,false
Http.Send
getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
各位大哥大姐,帮把这段代码改成C#版的,谢谢了.在线等.
HttpWebRequest
HttpWebResponse
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
request.Method = "GET";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader sr = new StreamReader(response.GetResponseStream(), enc);
string strHtml = sr.ReadToEnd();
sr.Close();
using System.IO;