HttpRequest
在线手册:中文  英文

HttpRequest::getResponseCode

(PECL pecl_http >= 0.10.0)

HttpRequest::getResponseCodeGet response code

说明

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.

返回值

Returns an int representing the response code.


HttpRequest
在线手册:中文  英文
易百教程