Elasticsearch (3) Curl command

Source: Internet
Author: User
Tags add time http authentication http post

Curl Operation HTTP Get/post/put/delete

CURL Command Parameters
-a/--append attaching to the destination file when uploading a file
-a/--user-agent <string> set up user agent to send to server
-Anyauth can use "any" authentication method
-b/--cookie <name=string/file> Cookie string or file read location
-Basic authentication using HTTP
-b/--use-ascii using ASCII/text transfer
-c/--cookie-jar <file> Write cookies to this file after the operation is complete
-c/--continue-at <offset> Breakpoint Continuation
-d/--data <data> HTTP POST mode transfer data
--data-ascii <data> Post data in ASCII mode
--data-binary <data> post data in binary mode
--negotiate using HTTP Authentication
--digest using digital authentication
--DISABLE-EPRT prohibit the use of eprt or LPRT
--DISABLE-EPSV prohibit the use of EPSV
-d/--dump-header <file> Write header information to this file
--egd-file <file> Set EGD socket path for random data (SSL)
--tcp-nodelay using the Tcp_nodelay option
-e/--referer Source URL
-e/--cert <cert[:p asswd]> client certificate file and password (SSL)
--cert-type <type> certificate file type (Der/pem/eng) (SSL)
--key <key> private Key file name (SSL)
--key-type <type> private key file type (Der/pem/eng) (SSL)
--pass <pass> private Key password (SSL)
--engine <eng> Encryption engine use (SSL). "--engine List" for list
--cacert <file> CA Certificate (SSL)
--capath <directory> CA directory (made using C_rehash) to verify peer against (SSL)
--ciphers <list> SSL Password
--compressed requirements Return is a compressed situation (using deflate or gzip)
--connect-timeout <seconds> Set Maximum request time
--create-dirs Creating a directory hierarchy of local directories
--crlf upload is to convert LF into CRLF
HTTP error not displayed when-f/--fail connection fails
--ftp-create-dirs If the remote directory does not exist, create a remote directory
--ftp-method [MULTICWD/NOCWD/SINGLECWD] controlling the use of CWD
--FTP-PASV using PASV/EPSV instead of ports
--ftp-skip-pasv-ip when using PASV, ignore the IP address
--ftp-ssl attempt to use SSL/TLS for FTP data transfer
--FTP-SSL-REQD requires SSL/TLS for FTP data transfer
-f/--form <name=content> analog HTTP form submission data
-form-string <name=string> analog HTTP form submission data
-g/--globoff Disable URL sequence and range using {} and []
-g/--get sending data in a get way
-h/--help Help
-h/--header <line> Custom header information to the server
--ignore-content-length the length of the HTTP header information ignored
-i/--include output includes protocol header information
-i/--head Display only Document information
Read-j/--junk-session-cookies from file ignores session Cookie
-Interface <interface> Specify network interface/address usage
-KRB4 < level > enable with the specified security level KRB4
-j/--junk-session-cookies read file into ignore session cookie
--interface <interface> using specified network interface/address
--KRB4 <level> using KRB4 with the specified security level
-k/--insecure allow non-use of certificates to SSL sites
-k/--config The specified configuration file read
-l/--list-only lists the file names under the FTP directory
--limit-rate <rate> Set Transfer speed
--local-port<num> forcing the use of local port numbers
-m/--max-time <seconds> Set Maximum transfer time
--max-redirs <num> Set the maximum number of read directories
--max-filesize <bytes> Set the maximum amount of files to download
-m/--manual Display Full Manual
-N/--NETRC to read the user name and password from the Netrc file
--netrc-optional use. netrc or URL to overwrite-n
--NTLM using HTTP NTLM authentication
-n/--no-buffer Disabling buffered output
-o/--output writes the output to the file
-o/--remote-name writes the output to the file, preserving the file name of the remote
-p/--proxytunnel using an HTTP proxy
--proxy-anyauth Select either Proxy authentication method
--proxy-basic using Basic authentication on the agent
--proxy-digest using digital authentication on the proxy
--PROXY-NTLM using NTLM authentication on the agent
-p/--ftp-port <address> use port address instead of PASV
-q/--quote <cmd> Send a command to the server before transferring the file
-r/--range <range> retrieving byte ranges from http/1.1 or FTP servers
--range-file Read (SSL) random files
-r/--remote-time Preserve remote file time when generating files locally
--retry <num> Number of retries when there is a problem with the transmission
--retry-delay <seconds> Set retry interval when problems occur with transmission
--retry-max-time <seconds> Set Maximum retry time when there is a problem with the transmission
-s/--silent Mute mode. Don't output anything.
-s/--show-error Display Error
--SOCKS4 --SOCKS5 --stderr <file>
-t/--telnet-option <OPT=val> telnet option settings
--trace <file> debug a specified file
--trace-ascii <file> like--trace but no hex output
Add time stamp when--trace-time trace/verbose output
-t/--upload-file <file> Uploading files
--url <URL> spet URL to work with
-u/--user <user[:p assword]> setting up the user and password for the server
-u/--proxy-user <user[:p assword]> Setting the proxy user name and password
-v/--verbose
-v/--version displaying version information
-w/--write-out [format] what output is complete
-x/--proxy -x/--request <command> Specify what commands
-y/--speed-time the time required to abandon the speed limit. Default is 30
-y/--speed-limit Stop transmission speed limit, speed time ' s
-z/--time-cond Transfer Time setting
-0/--http1.0 using HTTP 1.0
-1/--tlsv1 using TLSV1 (SSL)
-2/--sslv2 using SSLv2 (SSL)
-3/--sslv3 used by SSLv3 (SSL)
--3p-quote Like-q for the source URL for 3rd party transfer
--3p-url using URLs for third-party transfers
--3p-user third-party transfer using username and password
-4/--ipv4 using IP4
-6/--ipv6 using IP6
-#/--progress-bar Displays the current delivery status with a progress bar

Elasticsearch (3) Curl command

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.