Skip to content

Conversation

@COM8
Copy link
Member

@COM8 COM8 commented Sep 20, 2025

Adds a new CMake option called CPR_CURL_USE_LIBPSL. It is set to ON by default. It allows toggling PSL support for curl.

Why ON By Default?

  • With 1.12.0 we introduced this on by default behaviour and switching it to off, would introduce a second break here.
  • With PSL support enabled by default, we reflect how curl is behaving by default since cpr aims to only be a C++ wrapper around curl.
  • A secure default by default: The risk of super cookies exists and most people (including me) were/are not aware that something like this is a problem. Providing a secure default therefore is a good thing in my eyes.

@COM8 COM8 linked an issue Sep 20, 2025 that may be closed by this pull request
@COM8 COM8 merged commit 6c605a4 into master Sep 28, 2025
68 of 74 checks passed
@COM8 COM8 deleted the feature/allow_disabling_psl branch September 28, 2025 06:53
grybouilli pushed a commit to grybouilli/cpr that referenced this pull request Oct 24, 2025
* Allow disabling PSL

* Updated build requirements

* Added a CI run to check builds where PSL is disabled

* Enable PSL by default

* Added the missing g++

* Extended the PSL requirements docs

* Use a definitely wrong URL for proxy error tests

* CI: Added missing g++
grybouilli pushed a commit to grybouilli/cpr that referenced this pull request Oct 24, 2025
* Allow disabling PSL

* Updated build requirements

* Added a CI run to check builds where PSL is disabled

* Enable PSL by default

* Added the missing g++

* Extended the PSL requirements docs

* Use a definitely wrong URL for proxy error tests

* CI: Added missing g++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libpsl for curl can actually be optional

3 participants