Difference between revisions of "Curl -X"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  
  curl -X [[PUT]] [[-u]] myUser:myPassword [[-T]] test.txt "http://your_artifactory.com/artifactory/libs-release-local/test/test.txt"
+
  curl -X [[PUT]] [[-u]] myUser:myPassword [[curl -T|-T]] test.txt "http://your_artifactory.com/artifactory/libs-release-local/test/test.txt"
  
 
<code>[[curl --help]]</code>
 
<code>[[curl --help]]</code>

Revision as of 19:34, 7 October 2021

curl -X PUT -u myUser:myPassword -T test.txt "http://your_artifactory.com/artifactory/libs-release-local/test/test.txt"

curl --help

-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

See also

Advertising: