HttpRequest::setContentType

 public bool HttpRequest::setContentType ( string $content_type ) 

説明

Set the content type the post request should have.

戻り値

Returns TRUE on success, or FALSE if the content type does not seem to contain a primary and a secondary part.