Difference between revisions of "Curl -d"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
* <code>[[curl -d "token=xoxb-not-a-real-token-this-will-not-work" https://slack.com/api/auth.test]]</code> | * <code>[[curl -d "token=xoxb-not-a-real-token-this-will-not-work" https://slack.com/api/auth.test]]</code> | ||
+ | |||
+ | curl -X POST https://reqbin.com/echo/post/json | ||
+ | -H 'Content-Type: application/json' | ||
+ | -d '{"login":"my_login","password":"my_password"}' | ||
Revision as of 13:50, 11 July 2022
-d, --data HTTP POST data
curl -X POST https://reqbin.com/echo/post/json -H 'Content-Type: application/json' -d '{"login":"my_login","password":"my_password"}'
Related terms
- API
- application/x-www-form-urlencoded
- application/json
- -H "Content-Type: application/json"
--request POST
docker run -d
See also
Advertising: