Questions tagged [curlpp]

C++ wrapper for libcurl

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

89 questions
1
vote
1 answer

Troubles with Curlpp

When i'm compiling this code: #include #include #include #include int main() { cURLpp :: Cleanup cleanup; std :: cout << "Hello world" << std :: endl; return…
1
vote
1 answer

CURLPP 400 Bad Request when trying a wikipedia query

I want to extract the abstract of a wikipedia page by using the following URL: https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=Stack%20Overflow I am also using the CURLPP Library in order to…
Hani Goc
  • 2,371
  • 5
  • 45
  • 89
1
vote
1 answer

Compile errors when using libcurl in combination with curlpp

I want to send an http POST request to a server using libcurl and cURLpp. When I try to compile my program, I get these errors. I don't think the errors come from libcurl or curlpp so I must have done something wrong. Does someone know a…
Tom Doodler
  • 1,471
  • 2
  • 15
  • 41
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
  • 209
  • 3
  • 11
  • 38
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,965
  • 2
  • 22
  • 30
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,176
  • 2
  • 11
  • 30
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
  • 19,198
  • 51
  • 185
  • 312
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
  • 161
  • 1
  • 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
  • 801
  • 2
  • 8
  • 6
0
votes
1 answer

Error curl/curl.h: No such file or directory

I am using Dev-C++ and downloaded curlpp from here When I try to compile the included example (file example00.cpp, directory examples) Dev-C++ throw me the error I have written in the title. I looked for this file in my system, but it seems it…
0
votes
1 answer

Cmake complains about Could NOT find CURL (missing: CURL_LIBRARY)

I am building curl and curlpp from source in my CMakeLists.txt using FetchContent to use in an executable later in my CMakeLists.txt. cmake_minimum_required(VERSION 3.17) project(myproject VERSION…
afp_2008
  • 1,940
  • 1
  • 19
  • 46
0
votes
0 answers

When downloading file with curlPP some users get "schannel: failed to receive handshake, SSL/TLS connection failed"

I'm using the cURLpp library in C++ to download a file from the Internet as follows: std::string download_file_contents(const std::string& download_url) { curlpp::Easy request; request.setOpt(new curlpp::options::Url(download_url)); …
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
0
votes
1 answer

Making a POST request in C++ with curlpp

I am attempting to make a POST request using curlpp in C++ to Statistics Canada with their getDataFromVectorsAndLatestNPeriods. I can't seem to get a result from the request. #include #include #include…
Anthony Lin
  • 3
  • 1
  • 3
0
votes
0 answers

Installing curlpp library

I need your help in installing the curlpp library. I'm still a newbie to C++ and haven't installed any external libraries yet, I browsed around for quite some time but could only find installation wizards or compilers or automated processes. I want…
boru
  • 42
  • 6
0
votes
0 answers

curlpp c++ disable printing

sorry if this is a silly question, but I can't seem to get rid of the console output when making a request using cURLpp. I am programming a bot so I need to read data from the console in real time and it is very difficult with all this. I have tried…
milan
  • 1
  • 1