Python-Tls-Client
Python-Tls-Client copied to clipboard
Encoding error.
There is this 1 specific site where I am trying to parse an csrf token. But I cant cause tls client is currently not decoding the requests right. How can I fix that? (in the normal requests libary it works fine)
Try removing gzip
from the Accept-Encoding
header.
Example:
headers = {
"Accept-Encoding": "deflate, br", # by default, this is gzip, deflate, br
}
I had the same problem when I requested some of the response data was garbled
Hey, I have just released an update. Check out the new feature additional_decode
: link