Difference between revisions of "Curl -d"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* <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 | + | curl [[-X POST]] https://reqbin.com/echo/post/json |
-H 'Content-Type: application/json' | -H 'Content-Type: application/json' | ||
-d '{"login":"my_login","password":"my_password"}' | -d '{"login":"my_login","password":"my_password"}' |
Revision as of 06:51, 12 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: