[英]How can I avoid Http protocol error 0 while WebScraping
I am getting this error while web scraping网页抓取时出现此错误
http protocol error', 0, 'got a bad status line
http 协议错误', 0, '状态行错误
What does it mean?这是什么意思? And
和
How can I avoid this?我怎样才能避免这种情况?
First line of HTTP (>1.0) Response is status line. HTTP (>1.0) 响应的第一行是状态行。
This error says that your status line is broken.此错误表示您的状态行已损坏。 It can be if server response starts with
non-RFC status line
(i don't think it can be), and if response is version http/0.9
(no status line and headers).如果服务器响应以
non-RFC status line
开头(我认为不可能),并且response is version http/0.9
(没有状态行和标题),则可能是这样。 Server answer with HTTP/0.9 if your request (for example header lines) was broken如果您的请求(例如标题行)被破坏,服务器会回复 HTTP/0.9
Check response using wireshark (or something else) and give us a bit more info about your error.使用wireshark(或其他方式)检查响应,并向我们提供有关您的错误的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.