(PECL pecl_http >= 1.0.0)
HttpMessage::guessContentType — Guess content type
$magic_file
   [, int $magic_mode = MAGIC_MIME
  ] )Attempts to guess the content type of the message body through libmagic.
magic_filethe magic.mime database to use
magic_modeflags for libmagic
   Returns the guessed content type on success or FALSE on failure.
  
Throws HttpRuntimeException, HttpInvalidParamException.