(Jun-29-2017, 05:45 AM)Skaperen Wrote: i don't want to set user agent, i want to unset it so the header is absent.Just try and see how much you can get away with before no connection.
import requests headers = { 'user-agent': '', 'values': '', } r = requests.get("https://httpbin.org/headers", headers=headers) print(r.text)
Output:{
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Connection": "close",
"Host": "httpbin.org",
"User-Agent": "",
"Values": ""
}
}