# Talking to the Web: curl

curl fetches whatever is at a web address, from the terminal or a script: it prints a page, saves a download with -o or -O, asks a web API for JSON, shows the status code with -w, and with -f fails on an error instead of saving the error page.

![Cheat sheet for the lesson Talking to the Web: curl: curl fetches whatever is at a web address, from the terminal or a script: it prints a page, saves a download with -o or -O, asks a web API for JSON, shows the status code with -w, and with -f fails on an error instead of saving the error page.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/dc6a37d6d5ce4a8ead2573b406611502.webp)

- Category: Bash
- Level: Journeyman
- Tags: API, curl, linux, Query String, Status Code, unix, URL
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-curl-cheat-sheet
