BASE64
When doing a HTTP-Basic-Authentication, the username and the password are separated by a colon and then encoded with BASE64.
Example:
benutzer:passwort
becomesYmVudXR6ZXI6cGFzc3dvcnQ=
, which is transferred asAuthorization: Basic YmVudXR6ZXI6cGFzc3dvcnQ=
You get such a BASE64-string with one of the following methods:
with Perl:
perl -e 'use MIME::Base64; print MIME::Base64::encode_base64("benutzer:passwort", ""),"\n";'
There is a tool for Windows (55kB): http://www.fourmilab.ch/webtools/base64/
Call the program this way:
base64 file
where file contains user:password without linefeed!