FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
660 stars 136 forks source link

请求网页乱码 #74

Closed jxhczhl closed 1 year ago

jxhczhl commented 1 year ago

url = 'https://book.citilink.co.id/LoginAgency.aspx'

` session = tls_client.Session( client_identifier="chrome112", random_tls_extension_order=True )

response = session.get(url, params=params, headers=headers)

print(response.text) ` get请求这个网页,返回不正确的内容(乱码)

image

mciem commented 1 year ago

true

jxhczhl commented 1 year ago

在go版本的tls-client issue中找到了回答,设置请求头就行了