curl -X

From wikieduonline
Revision as of 08:35, 14 August 2024 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PUT[edit]

POST[edit]

GET[edit]

DELETE[edit]

curl --help[edit]

.../...
-X, --request <command> Specify request command to use
   --request-target Specify the target for this request
   --resolve <host:port:address[,address]...> Resolve the host+port to this address
   --retry <num>   Retry request if transient problems occur
   --retry-connrefused Retry on connection refused (use with --retry)
   --retry-delay <seconds> Wait time between retries
   --retry-max-time <seconds> Retry only within this period
   --sasl-ir       Enable initial response in SASL authentication
   --service-name <name> SPNEGO service name

Examples[edit]

  • TOKEN=$(curl -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")

Related[edit]

See also[edit]

Advertising: