Difference between revisions of "Curl -d"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
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 17:28, 23 January 2023
-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
curl -H "Content-Type: application/json"
--request POST
docker run -d
See also
Advertising: