Releases: libcpr/cpr
Releases · libcpr/cpr
Windows and MacOS HTTPS fix
What's Changed
Full Changelog: 1.8.1...1.8.2
cpr v1.8.1
Changes
- Not including
curl.h
in cpr header files #716
cpr v1.8.0
Changes
- Added
DownloadAsync(...)
#696 - Added basic range support via
SetRange(...)
#701 - Added support for setting the private key blob directly #699
- Added Mbed TLS support #714
- Added an option to reserve space before downloading the response string #712
- Updated the build in curl to 7.81.0
- Fixed CA-Path for Android #707
- Fix overwriting of ca bundle #717
- Fix build with OpenSSL on Ubuntu bionic #696
- Fixed installing DLLs to binary directory
cpr v1.7.2
Small bug fix release.
Changes
- Fixed version macro
cpr v1.7.1 - Header and cpr::Session::Download
Small bug fix release.
Changes
- Fixed setting headers when calling
cpr::Session::Download(...)
.
Now something like this should work:
cpr::Url url{server->GetBaseUrl() + "/download_gzip.html"};
cpr::Session session;
session.SetUrl(url);
session.SetHeader(cpr::Header{{"Accept-Encoding", "gzip"}}); // Works now
cpr::Response response = session.Download(cpr::WriteCallback{write_data, 0});
cpr v1.7.0
- Added a Cppcheck CI run
- Fixed automated libcurl ca path detection
- Fixed missing
raw_header
incpr::Response
- Fixed bugprone narrowing conversions
- Fixed
MaxRedirects
exceeded should be treated as error - Updated libcurl from
7.75.0
to7.79.1
- Fixed
cprConfig.cmake
when building cpr as a submodule - Added cpr version macros in
cprver.h
- Fixed CMake paths for subprojects
- Updated zlib-ng from
2.0.0-RC2
to2.0.5
- Fixed usage of
CPR_USE_SYSTEM_GTEST
- Added CMake find-package support
- Added more redirect options:
cont_send_cred
: Continue to send authentication (user+password) credentials when following locations, even when hostname changed.
- Added an option to specify the HTML version with
SetHttpVersion(...)
- Fixed respecting system proxy configuration
- Added an option to select the outgoing interface with
SetInterface(...)
- Added an option to get the file download length
GetDownloadFileLength(...)
- Updated Google Tests from
1.10.0
to1.11.0
- Added proxy authentication
- Don't forcibly override user setting for
FETCHCONTENT_QUIET
cpr v1.6.2
- Fix MSVC build; linker flags for sanitizer builds #558
cpr v1.6.1
Minor feature and bugfix release with the following changes:
- Added MacOS darwin-ssl support #549
- Added an option to split a request preparation from its execution #533
cpr::Session
is now movable #544- Not overriding
BUILD_TESTING
as cache variable any more #561 - Avoid recursive template instantiation in
priv::set_option()
#540 - Do not move targets in to a bin if cpr is a sub project #531
cpr v1.6.0
In this release the CMake integration has been refactored to fix a bunch of SSL issues.
During this change all relevant CMake variable names changed.
Here are the new ones:
-- =======================================================
-- CPR_GENERATE_COVERAGE: OFF
-- CPR_CURL_NOSIGNAL: OFF
-- CPR_USE_SYSTEM_GTEST: OFF
-- CPR_FORCE_USE_SYSTEM_CURL: OFF
-- CPR_ENABLE_SSL: ON
-- CPR_FORCE_OPENSSL_BACKEND: OFF
-- CPR_FORCE_WINSSL_BACKEND: OFF
-- CPR_BUILD_TESTS: ON
-- CPR_BUILD_TESTS_SSL: ON
-- =======================================================
Documentation for those can be found here: https://github.com/whoshuu/cpr/blob/aac5058a15e9ad5ad393973dc6fe44d7614a7f55/CMakeLists.txt#L30-L40
If neither CPR_FORCE_OPENSSL_BACKEND
nore CPR_FORCE_WINSSL_BACKEND
has been set to ON, CMake will try to automatically detect the best SSL backend for your system (WinSSL - Windows, OpenSSL - Linux & Mac, ...).
How to build on Windows
With WinSSL
mkdir build
cd build
cmake .. -DCPR_BUILD_TESTS_SSL=OFF # SSL test are only supported with OpenSSL
cmake --build .
With OpenSSL
mkdir build
cd build
cmake .. -DCPR_FORCE_OPENSSL_BACKEND=ON # Disable auto detect and force OpenSSL
cmake --build .
Changes
- Added support for GCC10 static analysis
- Added an option to retrieve the
std::shared_ptr<CurlHolder>
from a session - Added
UpdateHeader(const Header& header)
support #506 - Added support for retrieving certificate information #453
- Added
urlDecode(std::string)
for url decoding - Add
BearerToken
support #465 - Explicit move operator for
StringHolder
cpr::Session
cleanup and allow the compiler to generate the needed constructor- Updated
curl
from 7.69.1 to 7.75.0 #529 - Compatibility for
libcurl
<= 7.60 - Less auto and more explicit types
- Refactored the CMake variables #529
- Change listening ports used for tests
- Fixed
AbstractServer
data race - Fixed Windows OpenSSL builds #529
- Fixed Windows SSL backend detection #529
- Fixed
ReadCallback
will reset Header #517 - Fixed the Windows OpenSSL CI build