python request add header 1

python request add header

headers_dict = {"Cookie": "cookie1=value1"}

Here is what the above code is Doing:
1. We’re creating a dictionary called headers_dict.
2. We’re adding a key called Cookie to the dictionary.
3. We’re setting the value of the Cookie key to cookie1=value1.

Similar Posts