2016-02-17 94 views
1

我尝试执行下一个CURL。在POSTMAN中添加param curl -d

如何添加帕拉姆-d在邮差

curl https://core.spreedly.com/v1/gateways.json \ 
    -u 'Ll6fAtoVSTyVMlJEmtpoJV8S:RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSy' \ 
    -H 'Content-Type: application/json' \ 
    -d '{ 
     "gateway": { 
      "gateway_type": "test" 
     } 
     }' 

PostmanExample

回答

2

-d是POST数据。

您需要将您的JSON数据添加到请求的正文部分,并将请求方法设置为POST

E.g.

Postman screenshot with JSON body