Archive for November, 2007

Testing HTTP/HTTPS through telnet/openssl 

I know this is available other places, but I needed one place to keep track of everything:
Basic HTTP (telnet hostname.com 80):
GET / HTTP/1.1
host: hostname.com
- additional carriage return -

HTTPS (openssl s_client -connect hostname.com:443):
GET / HTTP/1.1
host: hostname.com
- additional carriage return -

HTTPS with Basic Authentication (openssl s_client -connect hostname.com:443):
GET / HTTP/1.1
host: hostname.com
Authorization: Basic cGVyyyyblahyyyyrJtYx4h
- additional carriage return -

This [...]