downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpRequest::setCookies> <HttpRequest::setBody
[edit] Last updated: Fri, 25 May 2012

view this page in

HttpRequest::setContentType

(PECL pecl_http >= 0.10.0)

HttpRequest::setContentTypecontent type を設定する

説明

public bool HttpRequest::setContentType ( string $content_type )

post リクエストの content type を設定します。

パラメータ

content_type

リクエストの content type (primary/secondary)。

返り値

成功した場合に TRUE を返します。 content type にプライマリパート、セカンダリパートが含まれていない場合に FALSE を返します。



add a note add a note User Contributed Notes HttpRequest::setContentType
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites