update : 2015.11.03
php.shukuma.com

검색:
 
 
Get response data

HttpRequest::getResponseData

(PECL pecl_http >= 0.10.0)

HttpRequest::getResponseDataGet response data

설명

public array HttpRequest::getResponseData ( void )

* Get all response data after the request has been sent.

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

반환값

Returns an associative array with the key "headers" containing an associative array holding all response headers, as well as the key "body" containing a string with the response body.