Questions tagged [curlpp]

C++ wrapper for libcurl

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

89 questions
1
vote
0 answers

options is not a member of curlpp

I was recently working on a project to make HTTP requests in C++. I found the libcurl library with the curlpp wrapper in another StackOverflow question. But when I set it up, it tells me that options is not a member of curlpp. #include…
Mr. PRAINGLE
  • 59
  • 1
  • 6
1
vote
0 answers

cURLpp tells "No URL set!" - basic examples no working but Url option seems fine

I can't make cURLpp to work with the following simple example, it keeps telling me No URL set!. Here is the simplified code: curlpp::initialize(CURL_GLOBAL_ALL); curlpp::Easy easyhandle; easyhandle.setOpt(new…
Michel L
  • 456
  • 7
  • 19
1
vote
0 answers

How to link curl / curlpp to a CMake project?

I'm trying to build an obs-plugin, but I'm new to everything involved with it (c++, CMake, and the obs-plugin ecosystem). So, I tried to make my own based on the existing plugin https://github.com/royshil/obs-backgroundremoval I made some string…
Maed Hamed
  • 11
  • 1
  • 2
1
vote
1 answer

How can I get an HTML on a local IP using libcurl?

At work, I have a device in another part of the building, which hosts a web page: http://10.1.1.165/ which I need to parse. I am attempting to use curlpp to retrieve the page and then libxml2 to parse the html. Currently I have: curlpp::Easy…
B. Hoeper
  • 216
  • 3
  • 12
1
vote
0 answers

cURLpp installation

I have downloaded, compiled and installed cURLpp. When I try to compile the example, it says that the headers can't be found (curlpp/curlpp.hpp etc.) but they are present in /usr/local/include. How do I add the library to my project? I am using…
jmac
  • 11
  • 2
1
vote
0 answers

Request valid via browser, returns a bad request page via curlpp driver

I am sending the following request via my…
trexgris
  • 362
  • 3
  • 14
1
vote
1 answer

How to use cURLpp/libcurl with Visual C++ 2008 Express

I've downloaded cURLpp, libcurl and openSSL. I'm a complete beginner and I want to use cURL with my c++ program. Every doc I can find about getting started is written for Unix.
OverflowStack
  • 13
  • 1
  • 3
1
vote
2 answers

How to upload file and json data with method POST use curlpp

I want to write C++ code with using curlpp library which work exactly as following example on curl if it possible of course. > curl -H "Content-Type: application/json" -X POST -d '{"param1":"val1", "param2":"val2", "param3":"val3"}' --data-binary…
1
vote
0 answers

CurlPP won't do requests multiple times

I am using CurlPP to get the public IP address of a network by using the API of https://ipify.org My function works fine, however, it only does when called up to 4-6 times. I am calling the function in a while loop to check for changes of the IP…
dmuensterer
  • 1,875
  • 11
  • 26
1
vote
0 answers

cURLpp linker error

Hi I get linker command failed with exit code 1 after install cURLpp throw homebrew using this command: brew install curlpp. How do I fix this? I'm on a Mac. I looked this up, but the answers are incomplete. Edit: Here's the code, makefile and full…
Luca
  • 171
  • 1
  • 13
1
vote
1 answer

Curlpp and PUT request

How to send PUT request using curlpp library? I found out how to send http POST (example below) or GET request, but nothing for PUT request. curlpp::Cleanup cleaner; curlpp::Easy request; request.setOpt(new…
parzival
  • 1,536
  • 2
  • 19
  • 27
1
vote
0 answers

curlpp error from LibCurl.obj and libcurl_a.lib

When executing the following code I receive LNK2019 errors. I have set the Runtime Library as Multi-threaded (/MT): // LibCurl.cpp : Defines the entry point for the console application. #include "stdafx.h" // errors here solved via…
reyyez
  • 365
  • 2
  • 3
  • 16
1
vote
0 answers

curlpp response is doubled

I'm just new to curlpp but I can't see what's wrong here with my code, so I hope someone can help me out. I'm using curlpp in C++ to make Facebook Graph queries. That means the Facebook server will return Json data as result. My code looks as…
michael.k
  • 168
  • 9
1
vote
2 answers

Undefined symbols for architecture x86_64 (curlpp)

In the project I'm working on, I'm trying to use the curlpp library to make a simple html GET request. I pass the cpp file to clang++ with the following options: clang++ -std=c++11 -stdlib=libc++ -I /usr/local/Cellar url_test.cpp I then get these…
1
vote
1 answer

How to add library curlpp to C++ project

I want to add curlpp to my C++ project. Currently, I have a main.cpp file which looks like this: #include #include #include #include int main() { return 0; } I compile…
muoi tom
  • 41
  • 2
  • 9