1

How do I send multiple cookies in python?.

Currently I send a single cookie value as below:

cookies ={'auth':123456789}
res = requests.get("http://www.example.com/",cookies=cookies)

I need to send a cookie like below:

cookies ={'auth':123456789,'auth2':abcde}
    res = requests.get("http://www.example.com/",cookies=cookies)

I get SyntaxError for this.

Can anyone suggest alternative way for this?

musefan
  • 47,875
  • 21
  • 135
  • 185
Gowtham
  • 351
  • 1
  • 4
  • 20

0 Answers0