Hands-on task
This task is step 6 of the course “curl and HTTP APIs”
Basic authentication
The endpoint http://localhost:8080/private is protected by HTTP Basic authentication and answers 401 to anonymous requests. Access it with the username admin and password s3cret and save the response body to /root/secret.txt.
What you'll practise:
- curl
- -u
- Basic auth
- Authorization
- 401