A
A
AlinaHeldman2020-12-17 16:32:48
JSON
AlinaHeldman, 2020-12-17 16:32:48

How to send POST JSON request via console using CURL in Windows 10 and get JSON response?

CURL works
5fdb5d31ecd86067268130.png
couldn't find how to send...
found this
curl -d '{"name": "value", "name": "value"}' -H "Content-Type: application/json" -X POST https ://...
does not work,
although everything works in POSTMAN! It's just a pity that I need it through the console, and not through POSTMAN.
here is the error
5fdb62bc79e20129613523.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuts, 2020-12-17
@AlinaHeldman

it worked so well

curl -X POST -d '{"name": "value", "name": "value"}' -k -H "Content-Type: application/json" https://

write an error...

V
Vladislav, 2020-12-17
@cr1gger

curl --location --request POST 'google.com' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'name=value' \
--data-urlencode 'last_name=value'

curl --location --request POST 'google.com' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'name=value' --data-urlencode 'last_name=value'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question