Answers for "how to put a request header in python requests"

1

how to pass header in requests

import requests
r=requests.get("http://www.example.com/", headers={"content-type":"text"})
Posted by: Guest on March-15-2021

Code answers related to "how to put a request header in python requests"

Python Answers by Framework

Browse Popular Code Answers by Language