Releases: anlutro/php-curl
Version 1.4.1
Allow HTTP basic auth with only username. #33
Version 1.4
Added curl->setDefaultHeaders(array $headers)
and curl->setDefaultHeader($key, $value)
for headers that should be set on every request.
Added curl->setDefaultOptions(array $options)
and curl->setDefaultOption($key, $value)
for curl_setopt
calls that should be done on every request.
Minor improvements to header consistency.
Fixed some @return
docblocks.
Version 1.3.3
Improved handling of HTTP 100 responses. #28
Version 1.3.2
Improved parsing of HTTP status code header, allowing HTTP 100 Continue responses to be parsed appropriately. See #25
Response headers are now parsed correctly when there are more than 2 duplicate headers. See #25 (comment)
Version 1.3.1
Fixed setCookies
so it overrides all existing cookies, and added docblocks to various Request methods.
Version 1.3
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());
}
Version 1.2
- Added
Request::setCookie($key, $value)
for easily setting multiple cookies. - Added
Request::auth($username, $password)
to make HTTP basic authentication a bit less verbose.
Version 1.1.1
Force header keys into lower-case to prevent duplicates.
Version 1.1
The library now throws a cURLException
with an improved error message instead of a RuntimeException
if there was an error during the curl request.
Version 1.0
Initial stable release