Curl 指令用法
CURL_CMD="curl" CURL_OPT="-qSfs -m 60" CURL_OPT_POST="-qSfs -m 60 -X POST"
Send an Empty POST Request
curl -X POST https://catonmat.net
Send a POST Request with Form Data
curl -d 'login=emma&password=123' -X POST https://google.com/login
Send a GET Request and Print the Response to Screen
curl https://catonmat.net/api?a=1&b=2
Send a GET Request and Save the Response to a File
curl -o response.txt https://catonmat.net/api?a=1&b=2
Images 0 | ||
---|---|---|
No images to display in the gallery. |