Skip to content

Releases: anlutro/php-curl

Version 1.4.1

10 Dec 17:19
Compare
Choose a tag to compare

Allow HTTP basic auth with only username. #33

Version 1.4

24 Oct 11:46
Compare
Choose a tag to compare

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

30 Jul 10:52
Compare
Choose a tag to compare

Improved handling of HTTP 100 responses. #28

Version 1.3.2

30 Jul 09:55
Compare
Choose a tag to compare

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

27 Jul 12:32
Compare
Choose a tag to compare

Fixed setCookies so it overrides all existing cookies, and added docblocks to various Request methods.

Version 1.3

20 Jul 21:14
Compare
Choose a tag to compare

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

13 Jul 11:38
Compare
Choose a tag to compare
  • 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

13 Jul 07:05
Compare
Choose a tag to compare

Force header keys into lower-case to prevent duplicates.

Version 1.1

07 Jul 09:30
Compare
Choose a tag to compare

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

07 Jul 09:29
Compare
Choose a tag to compare

Initial stable release