I am using Python Requests to access an HTTPS page that contains JSON data. I pass 2 parameters in the get request, they are listed below verify = False cookies = cookie I am aware that the verify = False is to get past SSL certification verification, and the cookies = cookie parameter is to pass cookie values. There are actually 2 cookie values that I have put in a dictionary, and one of the values is very long maybe 300+ characters. But when I run my code I get this error
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 602: ordinal not in range(256)
My code is attached below
import requests
test_url = "https://abc/cde"
cookie = {"cookie1":"value1(10 characters)", "cookie2":"value2(300+ characters)"}
response = requests.get(test_URL, verify=False, cookies= cookie)
print(response.content)