Skip to content
curl

Upload and Download

Transfer files to and from a server.

#upload#download#file

Code

curl
# Download to a named file
curl -o file.zip https://example.com/file.zip

# Download keeping the remote filename
curl -O https://example.com/file.zip

# Resume an interrupted download
curl -C - -O https://example.com/bigfile.iso

# Upload via multipart form
curl -F "[email protected]" https://example.com/upload

# Upload raw file with PUT
curl -T data.bin https://example.com/files/data.bin