Please enable JavaScript.
Coggle requires JavaScript to display documents.
Everything Curl (Common options (curl --help, curl --manual, curl -k…
Everything Curl
Common options
-
-
-
-
-
-
--trace/--trace-ascii is more verbose than -v, it shows every single sent and received byte
-w/--write-outcurl -w "Type: %{content_type}\nCode: %{response_code}\n" http://example.com
-
-
-
-
-
-
-
-
-
Curl needs a "CA store", a collection of CA certificates, to verify the TLS server it talks to
-
Debug SSL:
You may set the environment variable named SSLKEYLOGFILE to a file name of your choice before start the browser or curl
GET is default, using -d or -F makes it a POST, -I generates a HEAD and -T sends a PUT
-
Command line
If too many command-line options leading to total length exceeds limit, use "-K" option to read config from a file
-
"type=" query param specifies FTP type:
curl "ftp://example.com/foo;type=A" # ascii
curl "ftp://example.com/foo;type=I" .# binary
curl "ftp://example.com/foo;type=D" # directory
-
Curl parses the entire command line first, apply options specified, and then go over the URLs one by one to perform operations
-
-
-
-
-
Supported password schemes include "-u", --digest, --negotiate, and --ntlm
-
-
Source Code
-
-
Narrower columns are easier to read, there's a reason newspapers have used columns for decades or centuries, computer screens are no different
Don't write up a huge patch first and then send it to the list for discussion. Always start out by discussing on the list, and send your initial review requests early to get feedback on your design and approach.
-
-
Curl site is powered by fcpp, roffit and perl
General
-
-
-
Knows all about http, but don't care about HTML
-
-
-
POST
-
-
Chunked encoded POSTscurl -H "Transfer-Encoding: chunked" -d "payload to send" http://example.com
-
-
Protocol
-
Curl supports pretty much all application layer protocols that you can think of, including SMTP/IMAP
-
"Transfer-Encoding: chunked" header is used for chunked response, it ends with a zero-sized chunk
Uploads
POST usually sends a chunk of relatively small amounts of data to the receive, whereas PUT is designed to send a complete resource that is meant to be put as-is or even replace an existing resource
-