Home > PHP > Function > > HttpRequest::getResponseInfo()

HttpRequest::getResponseInfo()

HttpRequest::getResponseInfo - Get response info

Syntax

public HttpRequest::getResponseInfo (string $name)

Arguments

  • name - the info to read; if empty or omitted, an associative array containing all available info will be returned

Description

Get response info after the request has been sent.

Version

PHP PECL pecl_http >= 0.10.0

Return value

Returns either a scalar containing the value of the info matching name if requested, FALSE on failure, or an associative array containing all available info.