HttpRequest::getResponseCode

(PECL pecl_http >= 0.10.0)

HttpRequest::getResponseCodeGet response code

Descrição

public int HttpRequest::getResponseCode ( void )

Get the response code after the request has been sent.

If redirects were allowed and several responses were received, the data references the last received response.

Valor Retornado

Returns an int representing the response code.



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