CSharp网络爬虫

寇涵容
2023-12-01

C# HttpClient设置cookies的两种办法 (转发)

来自 https://www.cnblogs.com/refuge/p/8060142.html

C# HttpClient, 使用C#操作Web

来自 https://www.cnblogs.com/weixing/p/5614645.html

通过C#的HttpClient模拟form表单请求

来自 https://www.cnblogs.com/xiaoliangge/p/7522828.html

POST
使用 WebRequest 类发送数据

来自 https://docs.microsoft.com/zh-cn/dotnet/framework/network-programming/how-to-send-data-using-the-webrequest-class

How to make HTTP POST web request

来自 https://stackoverflow.com/questions/4015324/how-to-make-http-post-web-request

string param = "hl=zh-CN&newwindow=1";
byte[] bs = Encoding.ASCII.GetBytes(param);
HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create( "http://www.jb51.net/" );
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())
{
   //在这里对接收到的页面内容进行处理
}

C#中HttpWebRequest的用法

来自 https://www.cnblogs.com/liuqiyun/p/6866158.html

HttpWebRequest 下载图片至本地

来自 https://blog.csdn.net/KingCruel/article/details/53538148

HTTP
https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001432011939547478fd5482deb47b08716557cc99764e0000
《图解http》
POST和GET命令?
http://www.cnblogs.com/ranyonsue/p/5984001.html
https://www.cnblogs.com/lzq198754/p/5780310.html

区分JSON和JSP?
https://baike.baidu.com/item/JSON/2462549?fr=aladdin
https://baike.baidu.com/item/JSP/141543?fr=aladdin
http://www.runoob.com/jsp/jsp-intro.html

C#获取网页信息核心方法

来自 https://www.cnblogs.com/xiaoshuai1992/p/webcrawl.html

爬虫浅谈一:一个简单c#爬虫程序
上面这个讲的有F12读取HTTP报文信息

C#:控制IE打开网页,输入用户名、密码并登录

来自 https://blog.csdn.net/jyh_jack/article/details/81108619

c#中@的3种作用

来自 https://www.cnblogs.com/linkbiz/p/6380814.html

 类似资料: