Difference between revisions of "Curl -d"

From wikieduonline
Jump to navigation Jump to search
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  
<code>-d, --data    [[HTTP POST]] data</code>
+
* <code>-d, --data    [[HTTP POST]] data</code>
  
  
 
* <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"}'
 +
 +
[[Stop]] <code>[[op-batcher]]</code>:
 +
[[curl -d]] '{"id":0,"jsonrpc":"2.0","[[method]]":"[[admin_stopBatcher]]","params":[]}' \
 +
    -H "[[Content-Type: application/json]]" http://localhost:[[8548]] | [[jq]]
  
 
== Related terms ==
 
== Related terms ==
Line 11: Line 18:
 
* [[application/x-www-form-urlencoded]]
 
* [[application/x-www-form-urlencoded]]
 
* [[application/json]]
 
* [[application/json]]
* [[-H]] "Content-Type: [[application/json]]"
+
* <code>[[curl -H]] "Content-Type: [[application/json]]"</code>
 
* <code>[[--request POST]]</code>
 
* <code>[[--request POST]]</code>
 +
* <code>[[docker run -d]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 08:01, 21 June 2024

Advertising: