Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add param curl -d in POSTMAN

Tags:

curl

postman

I try to execute the next CURL .

How can I add the param -d in POSTMAN

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

PostmanExample

like image 398
Gilberto Ibarra Avatar asked Feb 17 '16 19:02

Gilberto Ibarra


People also ask

Can we use cURL command in Postman?

You can construct a request in Postman and convert it to cURL using the code snippet generator. Running cURL commands in a more user-friendly way. You can import a cURL request into Postman and run it.


1 Answers

-d is POST data.

You need to add your JSON data to the body section of the request and set the request method to POST.

E.g.

Postman screenshot with JSON body

like image 55
Alastair McCormack Avatar answered Oct 04 '22 00:10

Alastair McCormack