13 -o <file> # --output: write to file
14 -u user:pass # --user: Authentication
19 -vv # Even more verbose
24 -i # --include: Include the HTTP-header in the output
25 -I # --head: headers only
32 -L # follow link if page redirects
38 -d 'data' # --data: HTTP post data, URL encoded (eg, status="Hello")
39 -d @file # --data via file
40 -G # --get: send -d data via get
46 -A <str> # --user-agent
47 -b name=val # --cookie
49 -H "X-Foo: y" # --header
50 --compressed # use deflate/gzip
61 -E, --cert <cert> # --cert: Client cert file
62 --cert-type # der/pem/eng
63 -k, --insecure # for self-signed certs
71 curl -d password=x http://x.com/y
76 curl -u user:pass -d status="Hello" http://twitter.com/statuses/update.xml
80 # multipart file upload
81 curl -v -include --form key1=value1 --form upload=@localfilename URL
85 # Use Curl to Check if a remote resource is available
86 # details: https://matthewsetter.com/check-if-file-is-available-with-curl/
87 curl -o /dev/null --silent -Iw "%{http_code}" https://example.com/my.remote.tarball.gz