curl

上級
1/8
user@linux:~/workspace$
curl https://api.example.com/users

Explanation

Makes a GET request and displays the response.

Options

-oOutput to file
-XHTTP method
-HAdd header
-dSend data
-iInclude response headers
-LFollow redirects
-uBasic authentication
-sSilent mode
-OSave with original filename
-vVerbose output