How to define the HTTP protocol version in requests?

后端 未结 1 1110
后悔当初
后悔当初 2020-12-21 05:00
import requests  
requests.get(\"http://www.sample.com\")

How to modifiy the parameter to send the requests like below:

\"GET www.sample.co

相关标签:
1条回答
  • 2020-12-21 05:14

    Requests does not support sending HTTP/1.0 messages. It is hard to understand why you'd need to do that: HTTP/1.1 was originally specified in RFC 2616, published in June 1999. HTTP/1.0 has therefore been obsolete for more than 16 years: modern tools largely do not support HTTP/1.0 any longer.

    0 讨论(0)
提交回复
热议问题