Hands-on task
Request with an Authorization Header
A local service at http://localhost/secret returns data only when the X-Token: izzy header is present (otherwise 403). Fetch the protected response and save it to /root/secret.txt. In the Site tab the service answers 403: a browser doesn't send that header, but curl can.
- curl
- http headers
- -H
- authentication
- output redirection