How to do a HTTP request with authentication by hand:
- Let's say your user:pass is fred:supersecret
- /bin/echo -n "fred:supersecret" > /tmp/x
- uuencode -m /tmp/x /tmp/y
You'll get:
begin-base64 644 /tmp/y
ZnJlZDpzdXBlcnNlY3JldA==
====
- Copy the ZnJIZ... string (including the == at the end) to your cut buffer. This is your uuencoded user:password.
- telnet ip.or.host 80
- Type in: GET /path/to/file.html HTTP/1.0
- Optionally type in: HOST: www.yourserver.com
- Type in: Authorization: BASIC ZnJlZDpzdXBlcnNlY3JldA==
- Type in: A Blank line
- You should get the output web page now.
# posted by John : 11:44 PM