Python-Tls-Client icon indicating copy to clipboard operation
Python-Tls-Client copied to clipboard

Encoding error.

Open MitTeen123 opened this issue 1 year ago • 4 comments

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)

image

MitTeen123 avatar Mar 11 '23 11:03 MitTeen123

Try removing gzip from the Accept-Encoding header. Example:

headers = {
    "Accept-Encoding": "deflate, br", # by default, this is gzip, deflate, br
}

okay avatar Mar 13 '23 02:03 okay

I had the same problem when I requested some of the response data was garbled 错误

PythonMengQH avatar Mar 17 '23 09:03 PythonMengQH

Hey, I have just released an update. Check out the new feature additional_decode: link

FlorianREGAZ avatar Mar 17 '23 20:03 FlorianREGAZ

Hey, I have just released an update. Check out the new feature additional_decode: link

it works

2024baibai avatar Jul 13 '23 05:07 2024baibai