0

I'm new in Postman testing Api procedure and have a question how to send Api request in curl Windows. I was looking through stack and tried to do as described but it doesn't work for me. So here is my request

  • curl https://suggestions...../api/4_1/rs/suggest/fio ^
  • –data-raw "{"query": "A","count": 3}" ^
  • H "Content-Type: application/json" ^
  • -H "Accept: application/json" ^
  • -H "Authorization: Token 8997978" ^ -X POST

here is the result from cmd

The question is how to send post request with json from Curl in Windows. Not from File.

Amo Ra
  • 5
  • 3

1 Answers1

0

You can try :

curl -X POST
https://suggestions...../api/4_1/rs/suggest/fio -H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Token 8997978"
-d '{"query": "A","count": 3}'

Sandip Jangra
  • 145
  • 2
  • 9