-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
import requests as req
import json
proxy={'https':'172.16.3.96:8089',
'http':'172.16.3.96:8089'}
headers={'Content-Type':'application/json'}
url='https://httpbin.org/post'
r=req.post(url,data=json.dumps({'key':'value'}),
headers=headers,proxies=proxy,
verify='/Users/yeap/.mitmproxy/mitmproxy-ca-cert.cer')
print r.text
multipart/form-data
proxy={'https':'172.16.3.96:8089',
'http':'172.16.3.96:8089'}
headers={'Content-Type':'multipart/form-data'}
url='https://httpbin.org/post'
r=req.post(url,files={'key':'value','key1':'value'},
headers=headers,proxies=proxy,
verify='/Users/yeap/.mitmproxy/mitmproxy-ca-cert.cer'
)
print r.text
Metadata
Metadata
Assignees
Labels
No labels