HttpWebRequestError: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

前端 未结 4 767
甜味超标
甜味超标 2020-12-07 00:23

I have created a sample asp.net application and try to scrape data from my server using httpwebrequest. But some times I got this above error. I have done some searches on g

4条回答
  •  暖寄归人
    2020-12-07 01:18

    You may want to check the content of your headers. Try adding the following, as suggested by this link:

    Accept: text/html, application/xhtml+xml, */*
    

提交回复
热议问题