HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://www.sina.com.cn");
myReq.Method = "GET";
myReq.ContentType = "application/x-www-form-urlencoded";
HttpWebResponse myRes = (HttpWebResponse)myReq.GetResponse();
Stream resStream = myRes.GetResponseStream();
System.IO.StreamReader streamReader = new StreamReader(resStream, System.Text.Encoding.GetEncoding("GB2312"));
string mystring = streamReader.ReadToEnd();
Regex Myregex = new Regex(@"<[^>]*>");
mystring = Myregex.Replace(mystring,"");
myRes.Close();
resStream.Close();
Response.Write(mystring);
myReq.Method = "GET";
myReq.ContentType = "application/x-www-form-urlencoded";
HttpWebResponse myRes = (HttpWebResponse)myReq.GetResponse();
Stream resStream = myRes.GetResponseStream();
System.IO.StreamReader streamReader = new StreamReader(resStream, System.Text.Encoding.GetEncoding("GB2312"));
string mystring = streamReader.ReadToEnd();
Regex Myregex = new Regex(@"<[^>]*>");
mystring = Myregex.Replace(mystring,"");
myRes.Close();
resStream.Close();
Response.Write(mystring);