HttpRequest::setContentType
HttpRequest::setContentType — content type を設定する
説明
public bool HttpRequest::setContentType ( string content_type )post リクエストの content type を設定します。
パラメータ
- content_type
-
リクエストの content type (primary/secondary)。
返り値
成功した場合に TRUE を返します。 content type にプライマリパート、セカンダリパートが含まれていない場合に FALSE を返します。Weblioに収録されているすべての辞書からHttpRequest::setContentTypeを検索する場合は、下記のリンクをクリックしてください。

- HttpRequest::setContentTypeのページへのリンク