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 06:53, 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: