Not very clear on what you are trying to do, but if you are trying to get the request content type that was sent by the browser to your script, you can do this:
$header){
$headers[strtolower($name)] = $header;
}
// Get the content type header
$contentType = $headers['content-type'];
?>