im试图在python中发出http获取请求。我正在使用python 2.7 我想发送带有标题的cookie。 这是我的标题:
my_headers1 = {
'Connection': 'keep-alive',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Referer': 'https://www.haaretz.co.il/',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'he-IL,he;q=0.9,en-US;q=0.8,en;q=0.7',
'Cookie': 'anonymousId=XXXXXXXXXXXXXXXXXXXXXXXXXX; ann_id_Injected=true; login=XXXXXXXXXXXXXXXXX; remember=1; fiTrackingDomainParams=%7B%22host%22%3A%22tracking1.firstimpression.io%22%2C%22type%22%3A%22full%22%7D; tmsso=userId%3D8014167938%3AuserName%3Ddanams%40mail.idf.il%3AticketId%3D3231353532393934323136343338303433363030%3Atimestamp%3D1541947274293%3Aupref%3D17%3Ausrae%3D0%3Aurgdr%3D2%3AfirstName%3D%25D7%2590%25D7%259E%25D7%2599%25D7%25A8%3AlastName%3D%25D7%25A4%25D7%25A8%25D7%2599%25D7%2593%25D7%259E%25D7%259F%3Afbid%3D%3AemailValidity%3DnotValid%3AantiAbuseToken%3D2200e3dd9dbab9630c3f95d71f2934fe%3A; HtzPusr=4d67e524784fb14d71971b5ec20b91a4; userProducts=%7B%22products%22%3A%5B%7B%22trial%22%3Afalse%2C%22prodNum%22%3A274%7D%5D%2C%22tempSince%22%3Anull%2C%22temporary%22%3Afalse%7D'
}
但是当我咀嚼过滤器时,我看不到发送的cookie。
这是我的要求:
response= requests.get(url, headers=my_headers1 ,verify=False)
我正在做什么?