We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

cURL Basics

The simplest cURL command makes a GET request to the provided URL, for example:

curl https://jsonplaceholder.typicode.com/users/1

The response body is written to stdout

Because the output is written to stdout you can combine it with other commands, e.g. redirecting the output to a file.

curl https://jsonplaceholder.typicode.com/users/1 > user1.json

cURL supports a number of options and commands. Check their tutorial page or the man page for more information. We will only be covering the basics.

man curl

Assignment

https://api.boot.dev/v1/courses_rest_api/learn-http/issues

Run and submit the CLI tests.