aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/data/test_flow_export/python_post_json.py
blob: d6ae63571d0e599addff40251a03aa606c069bdb (plain)
1
2
3
4
5
6
7
8
9
import requests

response = requests.post(
    'http://address:22/path',
    headers={'content-type': 'application/json'},
    json={'email': 'example@example.com', 'name': 'example'}
)

print(response.text)