在POSTMAN中添加参数curl-d
我尝试执行下一个卷曲 如何在POSTMAN中添加参数-d在POSTMAN中添加参数curl-d,curl,postman,Curl,Postman,我尝试执行下一个卷曲 如何在POSTMAN中添加参数-d curl https://core.spreedly.com/v1/gateways.json \ -u 'Ll6fAtoVSTyVMlJEmtpoJV8S:RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSy' \ -H 'Content-Type: application/json' \ -d '{ "gateway": { "gateway_
curl https://core.spreedly.com/v1/gateways.json \
-u 'Ll6fAtoVSTyVMlJEmtpoJV8S:RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSy' \
-H 'Content-Type: application/json' \
-d '{
"gateway": {
"gateway_type": "test"
}
}'
-d
是POST数据
您需要将JSON数据添加到请求的body部分,并将请求方法设置为POST
例如
Elasticsearch在我尝试从邮递员处发送邮件时出错。ES处的curl是一个GET,带有-d:curl-X GET“localhost:9200/my_store/products/_search”-H'内容类型:application/json'-d'{“query”:{“constant_score”:{“filter”:{“terms”:{“price”:[20,30]}}}“@NateUni一个包含数据的GET请求?我不这么认为。