Hands-on task
Follow the redirect
The path http://localhost/old responds with a redirect (HTTP 302) to another path. By default curl doesn't follow a redirect — make it follow through to the end and save the final body to /root/final.txt.
In the Site tab, click the /old link: the browser follows the redirect on its own and shows the final page. curl only does that when asked.
- curl
- http
- redirects
- 302
- location