Skip to content

Tag Archives: http

How To Speak HTTP To .htaccess Login

16-Oct-07

The raw HTTP to access a directory that is protected with .htaccess: Authorization: BASIC <base64encoded_user_pass> Where base64encoded_user_pass is a base64 encoded string from a string "username:password". With imaginative username my_username and password my_password, i.e. "my_username:my_password", the result is Authorization: BASIC bXlfdXNlcm5hbWU6bXlfcGFzc3dvcmQ= (You may want to use some online tools, like opinionatedgeek's Base 64 Encoder.) And, […]