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

前端 未结 4 782
甜味超标
甜味超标 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:09

    This is certainly a server problem-- the server is not following the HTTP specification and the .NET client is flagging this as a potential problem. "Unsafe" is I think somewhat of a misnomer. There's not really a big security issue here, only non-compliance with the RFC which is bad but unfortunately not rare.

    So, as you found in Google, the way to get around the problem is to apply the following configuration change:

     
      
       
        
       
      
    
    

提交回复
热议问题