Comments (1)
Same here. Ubuntu 16.04. It does not work when https is used.
However I found is that by default, cpr uses its own curl library, instead of the system ones. So making cpr using system curl library, fixed the problem for me.
In my top level I set SET(USE_SYSTEM_CURL 1)
, for example
cmake_minimum_required(VERSION 3.5)
project(cpr_test)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES main.cpp)
SET(USE_SYSTEM_CURL 1)
add_executable(jsonrpc_test ${SOURCE_FILES})
add_subdirectory(ext/cpr)
include_directories(${CPR_INCLUDE_DIRS})
target_link_libraries(cpr_test
${CPR_LIBRARIES})
from cpr-example.
Related Issues (14)
- Automatically follow the master branch of cpr
- fatal: No url found for submodule path 'opt/cpr' in .gitmodules HOT 1
- Cannot update submodules.
- Unable to configure CMake HOT 4
- Error while make process
- Fresh build on windows failed
- Compiling issue on g++4.6.4 HOT 5
- Fix appveyor build HOT 1
- No bug reporting option in README file HOT 2
- Example.cpp response 0 when making HTTPS GET to some other website HOT 2
- Error while building
- build as a submodule is complicated
- Error in building example
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-example.