What if the user agent doesn't recognize "content-type", but prefers "Content-type"? That particular header may be case-insensitive; I don't know for sure. I do know that you don't have \r\n line endings.
It may be faster, but it's not correct according to the standard. If you're stuck on a server where CGI.pm absolutely cannot be installed, this may be a useful approach. | [reply] |