Working with command-line tools - curl and httpie

We will start composing and sending HTTP requests with the curl and HTTPie command-line tools we introduced in Chapter 1, Developing RESTful APIs and Microservice with Flask 1.0.2, in the section named Working with command-line tools - curl and httpie. Make sure you read this section before executing the next examples.

Whenever we compose HTTP requests with the command line, we will use two versions of the same command: the first one with HTTPie and the second one with curl. This way, you will be able to use the most convenient for you.

Make sure you leave the Django development server running. Don't close the Terminal or Command Prompt that is running this development server. Open a new Terminal ...

Get Hands-On RESTful Python Web Services - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.