Comments (11)
Just tried the example in the readme documentation again, and it works just fine. Can you give me a minimal snippet of the request that's bugging out for you?
from cpr.
@IngCr3at1on OS, curl
version?
from cpr.
@whoshuu will have to get that later. @nabijaczleweli this occurs in Arch Linux with curl 7.45
from cpr.
I'm having the same issue, but I found out that it happens only if you don't use your system's libcurl and it's just https requests, http works fine. I'm also on Arch Linux with curl 7.45 and OpenSSL 1.0.2.d
from cpr.
@vitorhnn aye I've noticed it only seems to happen on https also, I forgot to note that in the initial issue (since all github api and raw links are handled over https I didn't feel this was necessary). I have the same version of OpenSSL also.
As for a snippet of the request it's literally the same one as the example that I was playing with.
@vitorhnn can you elaborate on what you mean by "don't use your system's libcurl"; more specifically was there something you were able to do to make it work?
from cpr.
@vitorhnn, I think the issue you're seeing is related to #31, which has yet to be implemented when building the included curl library. It makes sense that your system curl works just fine, since it's correctly using OpenSSL from your system as well. When #31 is implemented, let's circle back on this issue and see if it's resolved.
from cpr.
@IngCr3at1on, there's an option to either use your system's libcurl or the included one. The option is USE_SYSTEM_CURL
(found here) and by default it's OFF
. You can turn it on by setting an environment variable (ie, export USE_SYSTEM_CURL=ON
), or setting a CMake definition cmake -DUSE_SYSTEM_CURL=ON .. && make
.
Additionally, the option should be exposed in the CMake gui if that's what you're using to configure your project.
from cpr.
@IngCr3at1on, set USE_SYSTEM_CURL to ON on your CMakeLists.txt, like here
from cpr.
Alright @whoshuu and @vitorhnn I'll try that out. Assuming it works I'll close this being that #31 already exists. Thanks.
from cpr.
@IngCr3at1on And?
from cpr.
Closing this, since it does not seem to be relevant any more.
from cpr.
Related Issues (20)
- SSL certificate pinning HOT 3
- Question: Is `WriteCallback` asynchronous? HOT 1
- cpr::Buffer data lifetime question HOT 4
- constexpr methods for some string-like types HOT 1
- Add support for identifying whether a Session is currently busy or not HOT 1
- zlib ignores --prefix/CMAKE_INSTALL_PREFIX when using cpr as external dependency HOT 2
- Link error when creating a cpr::Header, segment fault when making cpr::Get request HOT 1
- Question: Does cpr support ftp? HOT 1
- Confused on something HOT 3
- Call of overloaded ‘SetOption(std::__cxx11::basic_string<char>)’ is ambiguous HOT 1
- 13.2.0 gcc compiler, vcpkg and cpr: compilation error. HOT 7
- cpr::ThreadPool high CPU usage when Paused HOT 4
- Interceptors are single-shot
- async callback with highest performance?
- Thread Pool Deadlock While Task Wait HOT 1
- Possible race condition in singleton class GetInstance() function HOT 1
- cpr use system default curl? HOT 7
- parallelized http get/post request with trying best to reuse connections? HOT 1
- Multiple Invocations of
- cpr/cpr.h: No such file or directory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpr.