Question #5996
Submitted by Imabot
on 03/02/2022 at 10:47:02 AM UTC
How to cURL POST json data from the command line?
Merged questions
Answer
Submitted by Imabot
on 03/02/2022 at 10:50:45 AM UTC
To send cURL POST request with json data in command line, use the following syntax:
curl -H "Content-Type: application/json" -X POST -d '{"user":"bob","pass":"123"}' http://example.com
Answer by Imabot on 03/02/2022 at 10:50:45 AM
To send cURL POST request with json data in command line, use the following syntax:
curl -H "Content-Type: application/json" -X POST -d '{"user":"bob","pass":"123"}' http://example.com
Question by Imabot 03/02/2022 at 10:47:02 AM
How to cURL POST json data from the command line?
| # | ID | Query | URL | Count |
|---|---|---|---|---|
| 0 | 12189 | en | https://en.ans.wiki/5996/how-to-curl-post-json-data-from-the-command-line | 9 |
Icons proudly provided by Friconix.