作者:手机用户2502857335 | 来源:互联网 | 2023-05-16 22:57
ImscrapingasitewithHttpWebRequest,butthesiteisreturninganerror.Thepageworksfinewhe
I'm scraping a site with HttpWebRequest, but the site is returning an error. The page works fine when I hit it from my browser. I'd like to compare them to see what may be causing the error. I know how to intercept the request from my browser to inspect the headers, but how do I view the data sent by HttpWebRequest?
我正在使用HttpWebRequest抓取一个站点,但该站点返回错误。当我从浏览器点击它时页面工作正常。我想比较它们,看看可能导致错误的原因。我知道如何拦截来自浏览器的请求以检查标头,但是如何查看HttpWebRequest发送的数据?
5 个解决方案