Skip to content

Version 1.3

Compare
Choose a tag to compare
@anlutro anlutro released this 20 Jul 21:14
· 41 commits to master since this release

If a response contains multiple headers of the same type (common for cache-control, for example), $response->getHeader() will now return an array of headers instead of just the last occurance of the header. #21

Headers are now stored case-insensitively internally, so it's no longer possible to set duplicate headers if they vary in casing.

Can now do HTTP HEAD requests.

You can now get the request that triggered a cURLException:

try { /* ... */ } catch (cURLException $e) {
    var_dump($e->getRequest());
}