curl
curl is the Swiss Army knife of REST API testing. It can build any request you need with the headers and parameters you want, all in a compact and easy-to-use CLI. If you don’t have it installed on your system, you can use your system package manager or follow the instructions at https://curl.se/.
If you’re like me and prefer to interact with the command line, you’ll love curl (and you probably already know it). Not only that, but curl is used everywhere and is supported by a lot of applications, so it isn’t rare to have curl command-line examples in API documentation that provide support for extracting curl calls from places such as the Web Developers Tools of Firefox and Chrome in the Network tab, allowing you to reproduce network calls in your command line by copy and pasting.
In this section, we’ll explore using the curl command to send requests and get information such as headers in the response.
Getting information
The...