Difference between revisions of "Curl -d"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
* [[application/x-www-form-urlencoded]] | * [[application/x-www-form-urlencoded]] | ||
* [[application/json]] | * [[application/json]] | ||
− | * <code>[[-H]] "Content-Type: [[application/json]]"</code> | + | * <code>[[curl -H]] "Content-Type: [[application/json]]"</code> |
* <code>[[--request POST]]</code> | * <code>[[--request POST]]</code> | ||
* <code>[[docker run -d]]</code> | * <code>[[docker run -d]]</code> |
Revision as of 06:55, 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
curl -H "Content-Type: application/json"
--request POST
docker run -d
See also
Advertising: