HTTP header names are usually mixed case, e.g. 'Content-Type' but the HTTP Specification (RFC2616) allows any case to be used. So a server could return header names such as 'content-type' or 'CONTENT-TYPE'.
Always use a case-insensitive comparison if you are looking for a particular named header.