list($destinationResponseHeaders, $body) = explode("\r\n\r\n", $results, 2);
$destinationResponseHeaders = explode("\r\n", $destinationResponseHeaders);
if (!preg_match('/^([^:]+): (.*)$/', $header, $matches))
list($protocol, $responseCode, $responseMessage) = explode(' ', $header);
else {
list($headerName, $headerValue) = array_splice($matches, -2);
$sourceResponseHeaders[$headerName][] = $headerValue;
}