Questions tagged [curlpp]

C++ wrapper for libcurl

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

89 questions
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
1 answer

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
  • 1,103
  • 14
  • 36
0
votes
1 answer

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 L
  • 115
  • 2
  • 14
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
  • 73
  • 6
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…
0
votes
1 answer

How do I install libcurl4-openssl-dev together with libssl1.0-dev?

I need to use npm together with building C++ application using curl++. npm cannot be installed with libcurl4-openssl-dev on Ubuntu. If I use libcurl4-nss-dev instead of libcurl4-openssl-dev, my code compiles sucessfully, but gives error "No URL…
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
0
votes
1 answer

How to map PUT curl into CPP Curlpp?

I would like to map/write below curl (this curl works correctly in Linux terminal) into cpp code: curl -X PUT -u "abc" \ "https://api123.pl" \ -d 'symbol=EB&side=ri&quantity=3' Below is the CPP code using Curlpp library: #include…
Dawid Kowalski
  • 47
  • 1
  • 2
  • 6
0
votes
0 answers

Building cURLpp with vcpkg

It's my first time including a library with vckpg and Im getting these warnings when the curlpp 's building phase finishes: find_package(unofficial-curlpp CONFIG REQUIRED) target_link_libraries(main PRIVATE unofficial::curlpp::curlpp) I have…
allesuah
  • 73
  • 1
  • 2
  • 8
0
votes
0 answers

cURLpp Visual studio solution generated by CMake not building correctly

I have been struggling to get cURLpp to build correctly for 2 days now. I downloaded and succesfully installed libcurl using this guide: Getting cURL to work with Visual Studios 2017 Next, I downloaded cURLpp from the github page. I had to manually…
codewriter
  • 13
  • 2
0
votes
1 answer

setting Maximum Fragment Length Negotiation for SSL records using curlpp

I have requirement to set Maximum Fragment Length Negotiation for SSL records in my C++ application. I am using curlpp and wolfSSL for SSL support. In wolfSSL I can find wolfSSL_UseMaxFragment(), and wolfSSL_CTX_UseMaxFragment() which supports this…
rakesh.sahu
  • 465
  • 8
  • 18
0
votes
2 answers

How get curlpp response header

I'm calling a REST WS with a JSON payload to subscribe certains events. The server answer with HTTP-Code 201 and a field named Location in the HTTP-Header with the ID of the subscription. As an example, in curl (-v) we get: [...] < HTTP/1.1 201…
LuisGP
  • 431
  • 3
  • 13
0
votes
1 answer

How to use Curlpp to write json data file?

command line option is working,below is the wokring request curl -s -H "Content-Type: application/json" https://speech.googleapis.com/v1/speech:recognize?key=apikey -d @sync-request.json The same iam trying to do using libcurl ,Adding json data…
Rajesh Gopu
  • 863
  • 9
  • 33
0
votes
0 answers

cURLpp: Trying to read an XML document from the web

I just started to play a bit around with cURLpp, and try to read a XML document from the web. Here is the site: https://www.westlotto.com/wlinfo/WL_InfoService?gruppe=SpielplanToto When I do a simple cURLpp operation: try { curlpp::Cleanup…
Da Li
  • 189
  • 1
  • 9