linux POST请求
curl https://baidu.com -X POST -H “key1:value1” -H “key2:value2” -d ‘{“name”:“test”,“age”:“23”}’ -i
说明:
-H: header,后接key value对,用":"连接,多个header参数用多个-H
-d:body
-i:显示 http response 的头信息
linux POST请求
curl https://baidu.com -X POST -H “key1:value1” -H “key2:value2” -d ‘{“name”:“test”,“age”:“23”}’ -i
说明:
-H: header,后接key value对,用":"连接,多个header参数用多个-H
-d:body
-i:显示 http response 的头信息