c# 用System.Net 读取网页源代码
来源:互联网 发布:池城和李宝英 知乎 编辑:程序博客网 时间:2024/05/17 01:07
System.Net.HttpWebRequest req;
System.Net.HttpWebResponse res;
string url="http://www.baidu.com";
req = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url);
res = (System.Net.HttpWebResponse)req.GetResponse();
System.IO.StreamReader strm = new System.IO.StreamReader(res.GetResponseStream(), Encoding.GetEncoding("gb2312"));
MessageBox.Show(strm.ReadToEnd());
System.Net.HttpWebResponse res;
string url="http://www.baidu.com";
req = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url);
res = (System.Net.HttpWebResponse)req.GetResponse();
System.IO.StreamReader strm = new System.IO.StreamReader(res.GetResponseStream(), Encoding.GetEncoding("gb2312"));
MessageBox.Show(strm.ReadToEnd());
- c# 用System.Net 读取网页源代码
- c# 用System.Net 读取网页源代码
- c# 用System.Net 读取网页源代码(2)
- c# 用System.Net 读取网页源代码(一)
- c# 用System.Net 读取网页源代码(二)
- c# 用webBrowser读取网页源代码
- 用asp.net c# 获取网页源代码
- 用asp.net c# 获取网页源代码
- 用asp读取网页源代码
- 用XMLHTTP读取网页源代码
- 读取网页源代码
- vc++ 读取网页源代码
- 用c# 读取网页内容
- C#网页源代码获取
- C# 获取网页源代码
- c# 获取网页源代码
- c#获取网页源代码
- C#浏览网页源代码
- 还是没能独自站起来
- MDA的阵营划分
- oracle中的函数
- 帝国之争 动态网页编程语言谁主沉浮?
- 初出茅庐 Boot Sector
- c# 用System.Net 读取网页源代码
- 放假,大三的暑假
- 网上百科全书
- c# 用webBrowser读取网页源代码
- 用来读的词典:牛津当代百科大辞典(英汉·英英·彩色·图解)
- 有了“她”还要Rapidshare干啥
- 浮点库的连接问题(针对有的时候scanf("%f",&fn);出现的异常)
- C#数据库操作的3种典型用法
- 今天某MM生日,祝她快乐