求助!求大侠帮忙读段代码
我从网上搜了一段代码如下:
string param = "hl=zh-CN&newwindow=1";
byte[] bs = Encoding.ASCII.GetBytes(param);
HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create( "http://www.google.com/intl/zh-CN/" );
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
req.ContentLength = bs.Length;
using (Stream reqStream = req.GetRequestStream())
{
reqStream.Write(bs, 0, bs.Length);
}
using (WebResponse wr = req.GetResponse())
{
//在这里对接收到的页面内容进行处理
}
这段代码的意思应该是访问了谷歌 以POST 方式提交了数据,并接收了返回的页面内容,我看了半天就是没找到,接收的内容在哪呢?求大侠帮忙把接收的内容Response.Write()一下!!多谢