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
import tls_client client = tls_client.Session() print(client.post('https://httpbin.org/post', json={'a':'b'}).json() {'args': {}, 'data': '{"a": "b"}', 'files': {}, 'form': {}, 'headers': {'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br', 'Content-Length': '10', 'Content-Type': 'application/json', 'Host': 'httpbin.org', 'User-Agent': 'tls-client/1.0.1', 'X-Amzn-Trace-Id': 'Root=1-65f57b99-62f659ac717afad079b6f9f6'}, 'json': {'a': 'b'}, 'origin': '24.6.214.76', 'url': 'https://httpbin.org/post'} print(client.post('https://httpbin.org/post', data={'a':'b'}).json() # content-type show be application/x-www-form-urlencoded {'args': {}, 'data': 'a=b', 'files': {}, 'form': {}, 'headers': {'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br', 'Content-Length': '3', 'Content-Type': 'application/json', 'Host': 'httpbin.org', 'User-Agent': 'tls-client/1.0.1', 'X-Amzn-Trace-Id': 'Root=1-65f57ba4-5caf4a7701cfc5eb735aac2d'}, 'json': None, 'origin': '24.6.214.76', 'url': 'https://httpbin.org/post'}
I already give a pull request in #116 to fix the problem
The text was updated successfully, but these errors were encountered:
No branches or pull requests
import tls_client
client = tls_client.Session()
print(client.post('https://httpbin.org/post', json={'a':'b'}).json()
{'args': {}, 'data': '{"a": "b"}', 'files': {}, 'form': {}, 'headers': {'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br', 'Content-Length': '10', 'Content-Type': 'application/json', 'Host': 'httpbin.org', 'User-Agent': 'tls-client/1.0.1', 'X-Amzn-Trace-Id': 'Root=1-65f57b99-62f659ac717afad079b6f9f6'}, 'json': {'a': 'b'}, 'origin': '24.6.214.76', 'url': 'https://httpbin.org/post'}
print(client.post('https://httpbin.org/post', data={'a':'b'}).json() # content-type show be application/x-www-form-urlencoded
{'args': {}, 'data': 'a=b', 'files': {}, 'form': {}, 'headers': {'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br', 'Content-Length': '3', 'Content-Type': 'application/json', 'Host': 'httpbin.org', 'User-Agent': 'tls-client/1.0.1', 'X-Amzn-Trace-Id': 'Root=1-65f57ba4-5caf4a7701cfc5eb735aac2d'}, 'json': None, 'origin': '24.6.214.76', 'url': 'https://httpbin.org/post'}
I already give a pull request in #116 to fix the problem
The text was updated successfully, but these errors were encountered: