I am trying to access httpbin.org with basic authentication. I must enter a username and a password. Using telnet in the command terminal(linux) I execute at least :
telnet httpbin.org 80
HEAD /basic-auth/user/passwd HTTP/1.1
It gives a 401 status code (unauthorized).
I want to now somehow access it using a username and a password (in Base64, entered as username:password). In what way do I do this? I've tried (after 401 status code)
HEAD /username:password HTTP/1.1
(but this gives a 404 status code)
Authorization Basic <base64-encoded-credentials>