Closed jxhczhl closed 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请求这个网页,返回不正确的内容(乱码)
true
在go版本的tls-client issue中找到了回答,设置请求头就行了
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请求这个网页,返回不正确的内容(乱码)