-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPR on NDK has problems with HTTPS #884
Comments
I found a fix:
on every Request method in session (e.g Session::PreparePut(), Session::PreparePost() ) it will force SSL which will solve the problem for Android CPR users. |
@RexiRexii This is no fix. I have to warn you about using this since it basically disables all the authentication/trust (well mostly all) built up by HTTPS. This error to me sounds like a root ca path issue. What version of curl were you using?
|
I do not use CMake. And many people other than me are facing the same issue, if i make a request using raw curl (a.k.a not using cpr) it works fine, but if i use cpr it does not. |
Since you are not using CMake, there should not be any difference in how raw curl and cpr use https. As far as I'm aware, we do not set any specific options related to CA path and so on when preparing a request. Could you please provide a minimal example application, so I can have a look at it? |
Related to: #333 |
Description
I was using CPR on Visual Studio for my Android project, I did implement cURL with OpenSSL, and raw cURL worked perfectly fine with both http and https url's, however, when I tried the same with CPR, only http type url's worked, https for some reason doesn't work.
Example/How to Reproduce
cpr::Session
Possible Fix
I do not know the fix to this, which is why I made this bug report.
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
The text was updated successfully, but these errors were encountered: