FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
678 stars 135 forks source link

Encoding error. #46

Open MitTeen123 opened 1 year ago

MitTeen123 commented 1 year ago

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

okay commented 1 year ago

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

headers = {
    "Accept-Encoding": "deflate, br", # by default, this is gzip, deflate, br
}
PythonMengQH commented 1 year ago

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

FlorianREGAZ commented 1 year ago

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

2024baibai commented 1 year ago

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

it works