liveBook · Manning

Curl

As explained in Spring Start Here, Second Edition

cURL is a command-line tool and library for transferring data using network protocols including HTTP.

curl is a command-line tool for calling REST endpoints. It is useful for testing HTTP requests when a graphical interface is unavailable, such as over SSH or in a batch script. section 10.2

curl http://localhost:8080/hello

Call the local Spring endpoint with a short command; the response body is `Hello!`. section 10.2

Inspecting a request

Add `-v` to see request and response details, including the GET request and HTTP status. section 10.2

How Spring Start Here, Second Edition covers it

How deep it goes
Shows basic endpoint calls and verbose request output, without detailing broader curl capabilities.
Examples
Demonstrates calling `/hello` on localhost, reading `Hello!`, and inspecting verbose output.
What it assumes
Assumes curl is installed and the application is running; endpoint testing begins with a local Spring Boot example.
What you can do after
Apply curl to call a running Spring REST endpoint and inspect its response.
How it connects
Connects curl with HTTP requests, REST endpoints, Spring Boot, and Postman.

Also explained in

Compare how 3 books explain curl →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring Start Here, Second Edition. The section links point to the parts of the book it draws on.