Questions tagged [curlpp]

C++ wrapper for libcurl

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

82 questions
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
  • 6,197
  • 19
  • 92
  • 176
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…
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…
ALXdev
  • 33
  • 1
  • 7
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
  • 311
  • 4
  • 11
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
  • 421
  • 3
  • 12
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
  • 793
  • 6
  • 24
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
  • 139
  • 1
  • 8
0
votes
0 answers

Why libcurl errors undefined reference

I've started working with libcurl for couple hours. But it occurs too many errors at once. This is my code in main.cpp: #include #include "curl-7.53.1/include/curl/curl.h" using namespace std; int main(int argc, char *argv[]) { CURL…
no_ideaw
  • 131
  • 1
  • 10
0
votes
1 answer

How can I build curlpp on Windows for gcc?

I've downloaded the package from here: https://github.com/jpbarrette/curlpp When I drag CMakelists.txt onto cmake.exe it does build something that looks like a Microsoft Visual Studio project. I want to build static library that I could use in…
Tuxiak
  • 21
  • 3
0
votes
2 answers

Issues using curlpp after OSX homebrew install

I want to use curl/curlpp in my C++ project so I used the commands: brew install curl and brew install curlpp which had no issues. So to check that they were installed properly I called: curl --version and curlpp --version The first command gave a…
L-S
  • 87
  • 7
0
votes
0 answers

incomplete string in result curlpp

I'm trying to learn how to use curlpp to send http requests in C++. So far the examples on their own work fine, but I'm trying to save the result into a std::string variable using stringstreams. The code looks like this: 31 …
0
votes
0 answers

libcurl/curlpp giving me "__imp__curl_version" error

I'm trying to make an application in C++, in Windows using VS 2015. I've read in many places that curlpp is a good way to make HTTP requests. So I downloaded curlpp and noticed that it needed libcurl. I've built curlpp normally, and I've also…
bokirov
  • 13
  • 2
  • 4
0
votes
1 answer

Error while cmaking curlpp

I am trying to cmake curlpp using Cmake version 3.4.1 and I get an error in cmake saying: " Error in configuration process [...]". So all I did is in cmake-gui open the curlpp source (version 0.7.3), selected the destination folder and chose mingw.…
Andy
  • 95
  • 1
  • 3
  • 13
0
votes
1 answer

CURLpp, segmentation fault

Ubuntu 15.04, CLion, LibCurl, curl version - 7.38.00. When i'm compiling this code: #include #include #include #include #include int main() { try { …