Shell / Commands

curl

English

Overview

A command for sending and receiving data by specifying a URL.

Details

A command-line data-transfer tool supporting multiple protocols including HTTP, also used for things like testing an API. The -o option saves the response to a file and -X sets the request method (such as POST), which is why it's commonly reached for to fire off a quick API request or call one from a shell script.

More Linux terms