Hands-on task
This task is step 1 of the course “curl and HTTP APIs”
Download the server's response body
A local web server at http://localhost serves a greeting at the path /hello. Make a GET request and save the response body to the file /root/hello.txt.
The server shows up in the Site tab too: the browser opens its pages there. The task itself is curl in the terminal.
What you'll practise:
- curl
- http
- GET
- output redirection