File "C:\Python33\lib\site-packages\requests\models.py", line 441, in prepare_headers
for header in headers.items():
AttributeError: 'set' object has no attribute 'items'
How can i add a variable to my header? I'm trying to send a web request with cookies but i don't know how to add variables to the header part code:
headersx = {
"""
'cookie': '__cfduid='%s'; PHPSESSID='%s'; lang=de; CF-RAY='%s',
"""
%(cfuid, phpid, cfray)
}
response = requests.get('https://10minutemail.net/', headers=headersx)