python http server handle json - Sawyer Ford - 博客园
python3 http.client/server post传输json_前进的小学僧的博客-CSDN博客
# python3
# coding = utf-8
import requests
mydict = {
'key1': 'value1',
'key2': 'value2'
}
r = requests.post("http://192.168.111.128:8066/post", json=mydict)
print(r.status_code)
print(r.json())