According to the API, the headers can all be passed in with requests.get()
:
import requests
r=requests.get("http://www.example.com/", headers={"Content-Type":"text"})
According to the API, the headers can all be passed in with requests.get()
:
import requests
r=requests.get("http://www.example.com/", headers={"Content-Type":"text"})