In a blog post I use the following PHP to set the content-type of a response:
header(\'content-type: application/json; charset=utf-8\');
I
They are not case sensitive. In fact NodeJS web server explicitly converts them to lower-case, before making them available in the request object.
It's important to note here that all headers are represented in lower-case only, regardless of how the client actually sent them. This simplifies the task of parsing headers for whatever purpose.