The response object checks the HTTP Version of the curl responce. The version has to be d.d (e.g. 1.0, 1.1).
Version 2 or 3 are resulting in an Invalid HTTP response version: 3 exception.
|
if (!preg_match('|^\d\.\d$|', $version)) { |
|
throw new Exception('Invalid HTTP response version: '.$version); |
|
} |