user_payload = {
"header": {
"authorityType": 5,
"userName": "3123",
},
"body": {
"solutionType": "phone",
"startDate": "2023-02-18 00:00:00",
"endDate": "2023-02-18 23:59:59",
}
}
http_headers = {
"Accept-Encoding": "gzip, deflate",
"Content-Type": "application/json",
"Accept": "application/json"
}
user_payload = json.dumps(user_payload)
response = requests.request("POST", url, data=user_payload, headers=http_headers)
print(response.text)
这段python 如何转成 PHP的请求