HxHippy

curl

Transfer data from or to a server

Overview

A command-line tool for getting or sending data using URL syntax. Supports a wide range of protocols including HTTP, HTTPS, FTP, FTPS, SCP, SFTP, etc.

Syntax

curl [options / URLs]

Examples

$ curl https://api.example.com/data

Fetch data from an API endpoint.

$ curl -O https://example.com/file.zip

Download a file and save it with its original name.

curltransferdataurlhttphttpsapidownloaduploadweb