curl -L #follow redirects like >
curl -o output_file.html
curl -O #auto name , without name will error
curl -i #include headers

example header      
HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 560592
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Thu, 20 Jun 2024 06:26:01 GMT
Etag: "3147526947"
Expires: Thu, 27 Jun 2024 06:26:01 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Server: ECAcc (lac/55A0)
Vary: Accept-Encoding
X-Cache: HIT
Content-Length: 1256

curl #send get request with query parameter

curl -X POST -d "param1=value1&param2=value2" #send post request

curl -X POST -H "Content-Type: application/json" -d '{"key1":"value1", "key2":"value2"}' #json post

curl -H "Authorization: Bearer token" # send request with custom header

curl -C - -O #resume broken downoad

curl --limit-rate 100K -O

curl -T file.txt #upload

curl -F "name=user" -F "[email protected]" #form data

curl -A "Mozilla/5.0" #user agent set

curl -s #silent mode

curl -b "name=value" #include cookie in qequest

curl -c cookies.txt #store cookies from response

curl -b cookies.txt #use stored cookies.txt

curl --max-time 10

curl -O -O

curl -u username:password

curl -X PUT -d "param1=value1" #put request

curl -X DELETE #delete request

curl -x #use proxy curl -x -O

curl -I #get response header

curl -w "@curl-format.txt" -o /dev/null -s #get timing info