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…
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…
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…
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…
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…
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.
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…
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…
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…
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…
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…
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…
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…
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…