M
M
mrbaskus2016-01-21 10:38:11
linux
mrbaskus, 2016-01-21 10:38:11

How to make a POST request on Debian?

Can you please tell me how to make a POST request to Debian from the command line?
I installed curl, I don't quite understand how to make a request.
Address where to do it: http://server.ru/api/Mts/SendMessage request body: { "
PhoneNumber ": "phone number", "Text": "message" }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-01-21
@mrbaskus

curl -X POST -d '{"PhoneNumber": "номер телефона", "Text": "сообщение"}' -H "Content-Type: application/json" http://сервер.ру/api/Mts/SendMessage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question