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

search for in the

HttpRequest::getResponseMessage> <HttpRequest::getResponseHeader
[edit] Last updated: Fri, 25 May 2012

view this page in

HttpRequest::getResponseInfo

(PECL pecl_http >= 0.10.0)

HttpRequest::getResponseInfoレスポンスの情報を取得する

説明

public mixed HttpRequest::getResponseInfo ([ string $name ] )

リクエストが送信された後に、レスポンスの情報を取得します。

どのような 情報 が返されるのかについては、 http_get() を参照ください。

リダイレクトが許可されており、複数のレスポンスを受信した場合は、 最後に受信したレスポンスを参照します。

パラメータ

name

読み込む情報。空だったり省略したりした場合は、 取得可能なすべての銃尾法を含む連想配列が返されます。

返り値

name を指定した場合は、それに一致する名前の情報をスカラ値で返します。 失敗した場合は FALSE を返します。name を指定しなかった場合は、 取得可能なすべての情報を含む連想配列を返します。



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

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