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

search for in the

HttpRequest::getResponseCookies> <HttpRequest::getResponseBody
Last updated: Fri, 30 Jan 2009

view this page in

HttpRequest::getResponseCode

(PECL pecl_http >= 0.10.0)

HttpRequest::getResponseCodeレスポンスコードを取得する

説明

public int HttpRequest::getResponseCode ( void )

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

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

返り値

レスポンスコードを整数値で返します。



add a note add a note User Contributed Notes
HttpRequest::getResponseCode
meyer at labeltools dot com
25-Dec-2006 02:12
This page lists all response codes:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

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