We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behavior of tls_client:
tls_client
import tls_client sess = tls_client.Session( client_identifier='chrome_120', random_tls_extension_order=True, ) resp = sess.get('https://www.example.com/') print(type(resp.headers)) # <class 'dict'> print(resp.headers.get('Server')) # ECAcc (lac/55CB) print(resp.headers['Server']) # ECAcc (lac/55CB) print(resp.headers.get('sErVeR')) # None print(resp.headers['sErVeR']) # KeyError: 'sErVeR'
This is behavior of requests as a contrast:
requests
import requests sess = requests.Session() resp = sess.get('https://www.example.com/') print(type(resp.headers)) # <class 'requests.structures.CaseInsensitiveDict'> print(resp.headers.get('Server')) # ECAcc (lac/55D7) print(resp.headers['Server']) # ECAcc (lac/55D7) print(resp.headers.get('sErVeR')) # ECAcc (lac/55D7) print(resp.headers['sErVeR']) # ECAcc (lac/55D7)
Version info:
Thank you!
The text was updated successfully, but these errors were encountered:
Fixes FlorianREGAZ#108 and FlorianREGAZ#129
92464f9
- added timeout alias - Using case insensitive dict for headers
Minor fixes
70da10d
- Added requirements.txt - Fixes issue FlorianREGAZ/Python-Tls-Client#129
No branches or pull requests
Behavior of
tls_client
:This is behavior of
requests
as a contrast:Version info:
tls_client
version: 1.0.1Thank you!
The text was updated successfully, but these errors were encountered: