dotnetcore / DotnetSpider

DotnetSpider, a .NET standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework
MIT License
3.98k stars 1.04k forks source link

如何发起post请求,带body内容 #207

Closed songyunhmiLY closed 3 years ago

songyunhmiLY commented 3 years ago

谢谢

Chfei1 commented 3 years ago

Request request = new Request(url); request.Method = "Post"; request.Content=new StringContent(a=1&b=2);