This extracts response code, headers, cookies and decodes body if it was encoded in some way
Tags:
return:
true on success, PEAR_Error in case of malformed response
throws:
PEAR_Error
access:
public
Parameters:
bool
$saveBody
Whether to store response body in object property, set this to false if downloading a LARGE file and using a Listener. This is assumed to be true if body is gzip-encoded.
bool
$canHaveBody
Whether the response can actually have a message-body. Will be set to false for HEAD requests.