1。
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create("http://www.google.com/search?hl=zh-CN&q=g&btnG=Google+%E6%90%9C%E7%B4%A2&lr=lang_zh-CN");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
if(response.StatusCode!=HttpStatusCode.OK)
return;
StreamReader sr=new StreamReader(response.GetResponseStream(),Encoding.GetEncoding("Gb2312"));
Response.ContentEncoding=sr.CurrentEncoding;
//通过正则表达式修改内容。成为自己的,再输出
Response.Write(sr.ReadToEnd());
2。通过WebClient 类 的 OpenRead() 等读取,发送
3。HttpWebRequest.GetRequestStream() + StreamWriter 改变请求流