Questions tagged [curlpp]

C++ wrapper for libcurl

C++ library wrapping (and simplifying) , not actively maintained anymore.

82 questions
1
vote
0 answers

Making curlpp work in Windows 10

I upgraded to Windows 10 and am trying to make curlpp work with MS visual studio 2013. I have downloaded the first simple example from github: #include #include #include using namespace…
Iason
  • 367
  • 3
  • 7
  • 33
1
vote
1 answer

Can't use curlpp with Xcode even though library is included

I am trying to use curlpp in my Xcode c++ project, but even though I added the library to the target in the project settings, I'm told "file not found" for the line #include I probably did something wrong, but I'm not sure what.…
Vincent
  • 3,784
  • 2
  • 20
  • 29
1
vote
1 answer

An error when compiling using curlpp

I tried to compile first simple example, and see compile error: undefined reference to `curlpp::Cleanup::Cleanup()' In linker options i wrote curl-config --libs, in command line $ curl-config --libs -lcurl What am I doing wrong?
Antigluk
  • 1,038
  • 2
  • 10
  • 28
1
vote
1 answer

How to build curlpp on Mac OSx 10.8

I would like to try the C++ wrapper for libcurl; curlpp. The documentation seems to be non-existent. I am following the steps that I found here: http://wiki.hartungdesign.net/docs:mac:builds:curlpp This basically just says do the typical 1.…
Nick
  • 17,810
  • 47
  • 175
  • 303
0
votes
1 answer

Converting from java to c++, what is the equivalent curl command for setRequestProperty

I'm trying to convert a Java application to C++, I am using cURL for my requests. Below is the java code; I'm wondering how to replicate the connection.setRequestProperty() method. connection = (HttpURLConnection)…
user1127081
  • 141
  • 3
  • 13
0
votes
1 answer

major issues with cURLpp and Eclipse

I am attempting to use cURLpp as an avenue for retrieving data from a weather website for a final project in my C++ class. I am using Eclipse as an IDE and MinGW as my compiler. All I want to be able to do is send a GET request to the weather API…
Codebug
  • 721
  • 2
  • 7
  • 6
0
votes
0 answers

install cURLpp errors c++

I recently installed cURLpp from NUGET in visual studio. Everything installed correctly and when I try to use cURLpp I get the following error: Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol…
0
votes
0 answers

cURLpp Send JSON with GET request

I tried to send a GET request (to https://api.binance.com/api/v3/depth) but I can't seem to find how to send a JSON payload with it. I found this: std::string body; body = "{\"symbol\":\"BTCUSDT\",\"limit\":5}"; request.setOpt(new…
0
votes
0 answers

Setting CMake curl variables for building curlpp

I use C++, curl 7.64, CMake 3.19.3, curlpp 0.8.1, Windows 7 OS. I cannot build curlpp out-of-the-box. CURL_FOUND is set to true, but CURL_INCLUDE_DIRS and CURL_LIBRARIES are empty (AFAIK, CMake module delegates variables filling to curl CMake…
ilya
  • 941
  • 10
  • 30
0
votes
0 answers

Protocol "tftp" not supported or disabled in libcurl in beaglebone linux

I have try a c++ program using curlpp libraries in my VM, my intention is when i execute the program, i can get a file via tftp. I tested this program on the VM , this program managed to get a file from another VM. However when i run this program in…
KJ Lau
  • 91
  • 8
0
votes
0 answers

Why CurlPP WriteFIle Option is not working in this code?

I'm trying to download a file using CurlPP, this is my code: curlpp::Cleanup myCleanup; curlpp::Easy myRequest; myRequest.setOpt("https://mydomain/thefileIwant.bin"); myRequest.setOpt(new…
user1814720
  • 83
  • 1
  • 8
0
votes
0 answers

mysql UDF library can't load as it doesn't finds some shared object which exists

B.H I'm trying to write UDF code for mysql that links with libcurlpp.so. I'm building it using cmake using PkgConfig tool as following: find_package(PkgConfig REQUIRED) pkg_check_modules(CURLPP_PKG REQUIRED IMPORTED_TARGET…
Ben Goz
  • 13
  • 3
0
votes
1 answer

Undefined symbol _curl_easy_setopt error while running example code

I am trying to test run the first example in curlpp and I am getting the error "Undefined symbol: _curl_easy_setopt". I have an idea that this is a problem with how I have tried linking the library. Below is my methodology. header search paths ->…
0
votes
0 answers

Trouble including curlpp

I'm trying to get the content from http pages in a string the way it is adviced here. I downloaded the curlpp zip and added the include folders to my project using INCLUDEPATH += "" in the .pro file and of course included them in the header of…
Schulp
  • 53
  • 5
0
votes
0 answers

Errors when use cURLpp in C++

When I use cURLpp to call an API, I got some errors, anyone can help me? I think caused by I linking both TorchScript library and cURLpp library because I can run another project with each library separately. CMakeLists.txt…