General improvement and support for HEAD method.
Borader support for BSDs that are not Mac OS.
Proper end-of-line as per the RFC (should be CR+LF).