GithubHelp home page GithubHelp logo

Comments (11)

whoshuu avatar whoshuu commented on May 6, 2024

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.

nabijaczleweli avatar nabijaczleweli commented on May 6, 2024

@IngCr3at1on OS, curl version?

from cpr.

IngCr3at1on avatar IngCr3at1on commented on May 6, 2024

@whoshuu will have to get that later. @nabijaczleweli this occurs in Arch Linux with curl 7.45

from cpr.

vitorhnn avatar vitorhnn commented on May 6, 2024

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.

IngCr3at1on avatar IngCr3at1on commented on May 6, 2024

@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.

whoshuu avatar whoshuu commented on May 6, 2024

@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.

whoshuu avatar whoshuu commented on May 6, 2024

@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.

vitorhnn avatar vitorhnn commented on May 6, 2024

@IngCr3at1on, set USE_SYSTEM_CURL to ON on your CMakeLists.txt, like here

from cpr.

IngCr3at1on avatar IngCr3at1on commented on May 6, 2024

Alright @whoshuu and @vitorhnn I'll try that out. Assuming it works I'll close this being that #31 already exists. Thanks.

from cpr.

nabijaczleweli avatar nabijaczleweli commented on May 6, 2024

@IngCr3at1on And?

from cpr.

COM8 avatar COM8 commented on May 6, 2024

Closing this, since it does not seem to be relevant any more.

from cpr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.