...

/

Exercise: Looking at Real HTTP Response Messages

Exercise: Looking at Real HTTP Response Messages

cURL is an important command for testing as a front-end engineer. Let's learn about it in this lesson.

We'll cover the following...

cURL

Run the following command to look at a real HTTP response.

Press + to interact
curl http://example.org --head -silent

cURL (pronounced ‘curl’) is a command-line tool that transfers data to or from a server. The transfer can be based on a vast set of protocols. cURL stands for “Client URL,” and is an important tool to know as a front-end engineer for testing purposes. You can read more about cURL on its man page.

Explanation

Let’s learn about cURL’s components.

  • curl is the name of the program that tells the terminal that this is a curl command.
  • The --head flag, or -I in short, tells cURL to send an HTTP request with the head method. In other words, instead of fetching
...