首先是一个测试的网址 http://www.httpbin.org
下面是通过httpbin.org 发送的post 请求 返回的结果! 可以看出,正确的传递了表单数据!
{
"files": {},
"origin": "120.24.36.230, 120.24.36.230",
"form": {
"access_token": "56f2323b4f5d45c1b57dc28e9da3cc06",
"id": "5c416aa3fbf84c5a57d65191"
},
"url": "https://www.httpbin.org/post",
"args": {},
"headers": {
"Content-Length": "73",
"Accept-Encoding": "gzip,deflate",
"Accept": "*/*",
"User-Agent": "Mozilla/5.0 (compatible; pycurl)",
"Host": "www.httpbin.org",
"Content-Type": "application/x-www-form-urlencoded"
},
"json": null,
"data": ""
}
网友评论