Skip to content

Releases: BerliozFramework/HttpClient

v2.4.1

17 Jun 13:41
Compare
Choose a tag to compare

Fixed

  • Missing curl_close() call in CurlAdapter
  • Missing CURLOPT_NOSIGNAL option to TRUE to prevent timeout
  • CurlAdapter::clearOptions()
  • Move socket close in try-finally block in StreamAdapter

v2.4.0

12 May 11:56
Compare
Choose a tag to compare

Added

  • New history option: Options::$history to define max size of history
  • New property History::$size to define the retention of history
  • Berlioz\Http\Client\Discovery\BerliozDiscovery discovery class for php-http/discovery package
  • New class HarFactory to manage HAR files

Removed

  • psr/log-implementation composer entry

Deprecated

  • Session::createFromHar(), use HarFactory::createSession() instead
  • Session::createFromHarFile(), use HarFactory::createSessionFromFile() instead
  • Session::getHar(), use HarFactory::createHarFromSession() instead
  • Session::writeHar(), use HarFactory::writeHarFromSession() instead

v2.3.0

14 Mar 11:37
Compare
Choose a tag to compare

Changed

  • PHP 8.4 compatibility

Fixed

  • Cookie parsing with timezone

v2.2.0

14 Jan 15:33
Compare
Choose a tag to compare

Added

  • New context option: HttpContext::$ssl_local_passphrase

Deprecated

  • Context option: HttpContext::$ssl_local_cert_passphrase

Fixed

  • Bad stream context option for passphrase

v2.1.0

19 Apr 07:37
Compare
Choose a tag to compare

Changed

  • Compatibility with package psr/log in versions 1.0, 2.0 and 3.0

v2.0.0

22 Mar 12:04
Compare
Choose a tag to compare

Added

  • Options class to manage options of client
  • HttpContext class to pass context to adapters
  • 'context' option to personalize Proxy/SSL/... options of adapters
  • Retry option for NetworkException

Changed

  • Signature of AdapterInterface::sendRequest() method
  • Adapters accept context to personalize Proxy/SSL/... options
  • Undefined option returns NULL instead of exception
  • Force string cast in HarGenerator headers
  • Change method to get content and headers from CURL
  • Do not get content from HEAD requests
  • Bump version of elgigi/har-parser library to ^1.0

Removed

  • Remove deprecated default header "Accept-Charset"

Fixed

  • Normalize headers in options
  • Normalize default headers
  • Non-utf8 header value for HAR generation
  • Non-utf8 querystring value for HAR generation
  • Bug with clone method of PHP
  • Fix redirect for 307 and 308 http status

v2.0.0-beta5

07 Sep 10:12
Compare
Choose a tag to compare
v2.0.0-beta5 Pre-release
Pre-release

Fixed

  • HTTP reason not encoded in UTF8 from response

v1.3.1

19 Jul 13:49
Compare
Choose a tag to compare

Fixed

  • Try to decode content if empty
  • Trimmed content before inflate failed

v2.0.0-beta4

13 Jul 12:33
Compare
Choose a tag to compare
v2.0.0-beta4 Pre-release
Pre-release

Added

  • Write HAR file to a stream

Changed

  • Cookie::isSame() now compare only name, domain and path
  • HarParser renamed to HarHandler
  • HarAdapter accept a path of HAR file in constructor argument

Removed

  • Dependency with mbstring

Fixed

  • Try to decode content if empty
  • Trimmed content before inflate failed
  • Creation of request/response from HarAdapter use now cookies objects of har file instead of headers

v2.0.0-beta3

25 Feb 16:30
Compare
Choose a tag to compare
v2.0.0-beta3 Pre-release
Pre-release

Added

  • New method DefaultHeadersTrait::addDefaultHeaders
  • New HarAdapter to simulate connection with HAR files

Changed

  • Base64 encoding for HAR response content

Fixed

  • Redirection keep old headers like Content-Length
  • Duplicate host header