Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
145 views

Why does passing address of std::string to libcurl work?

Almost every C++ libcurl example goes like this: std::string response_string; curl_easy_setopt(curl, CURLOPT_URL, "http://some url"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ...
JF4's user avatar
  • 518
2 votes
0 answers
41 views

Curl Undefined References [NINTENDO HOMEBREW]

I'm trying to create a Nintendo Homebrew Application that makes use of curl in libnx. It gives me a bunch of errors for undefined references, and I don't know what to do. Here, I saw people using curl ...
MonkeyFeet10's user avatar
2 votes
0 answers
73 views

What is needed to enable libcurl WebSocket support, `CURLE_UNSUPPORTED_PROTOCOL`?

I have an application using Curl for HTTP(S) and wanted to integrate with a WebSocket endpoint as well. Curl has an example for this, but even using the example code exactly I get ...
Fire Lancer's user avatar
  • 30.2k
2 votes
1 answer
65 views

Making GET requests in a C GUI (e.g. SDL2) app: How to use libcurl without blocking the main loop?

I'm sorry if this has been asked before, or it's a really basic C question - I am more used to creating websites, in which case you can just use JS's fetch function to make network requests ...
Zalaxci's user avatar
  • 21
0 votes
0 answers
21 views

Ignore time validity constraints OCSP stapling response while TLS handshake

I'm working on TLS handshake to connect with server with curl library in C++. The problem: When system client is wrong => Can not verify server certificate, OCSP stapling response. Thus I need to ...
Quyen Nguyen's user avatar
0 votes
0 answers
101 views

SMTP for Office 365 with OAuth 2 by libcurl - how to get bearer token without registering application for client_id and client_secret

I've already written a couple of applications for REST calls which are authenticated by OAuth2 and therefor I had to register the application to get the client_id and client_secret in order to request ...
Achim Schön's user avatar
0 votes
0 answers
182 views

Having problems building Libcurl x64 library for Visual Studio 2022

I have cloned the latest version of LibCurl onto my machine and am trying to build a static debug instance with nMake to use in my Visual Studio 2022 project. I have been referring to this winbuild ...
BTubbs200's user avatar
1 vote
1 answer
55 views

Indicate several curl options via httr::config(ssl_options = c(LIST OF SEVERAL CURLSSLOPT_) )

How to pass several libcurl options via httr::config(ssl_options = ...), please ? My primary goal is to indicate these 2 arguments : CURLSSLOPT_AUTO_CLIENT_CERT and CURLSSLOPT_NATIVE_CA, in order to ...
Clément LVD's user avatar
0 votes
0 answers
246 views

Error when trying to load in curl package in R

When I try to load in the curl package in R I get the following error message: unable to load shared object '/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/curl/libs/curl.so': ...
stepback3's user avatar
0 votes
0 answers
57 views

Scrape website behind a form with dynamic action link

I'm trying to scrape a website page, but the page is hidden behind a form. I was trying to do this with some PHP and the simple_html_dom.php library. Unfortunately the action link of the form appears ...
Luca Tarasco's user avatar
2 votes
1 answer
114 views

Error with libcurl.so.4 undefined reference to __fdelt_chk@GLIBC_2.15 during Conda environment compilation

I'm compiling a C++/MPICXX software program within a Conda environment that includes the following requirements (the version I currently have): cmake (3.26.3) openmpi (4.1.6) h5pcc [...
n3lmnTrxx's user avatar
  • 416
1 vote
1 answer
31 views

CPR SetInterface Changes to Networkstack

I'm trying to understand the details of the 'SetInterface' command of the cpp CPR library. In the greater scope I am trying to deploy an envoy service mesh on top of the OAI 5G network implementation. ...
bluemelov's user avatar
1 vote
0 answers
163 views

Deribit test API post requests failure

I am trying to hit this Deribit test API to place an order. I am facing error while sending POST requests using CURL. I have generated the auth token. This also I did via GET as POST was not working. /...
JJ007's user avatar
  • 11
0 votes
0 answers
81 views

Using curlpp, compiles well but then execution error

This the example code I am using: curlpp_example_00 #include <curlpp/cURLpp.hpp> #include <curlpp/Easy.hpp> #include <curlpp/Options.hpp> using namespace curlpp::options; int main(...
damn_wrongaccount's user avatar
0 votes
0 answers
62 views

Tesseract Code Execution Cannot Proceed, libcurl.dll

I'm trying to read text from images with Tesseract. I downloaded from here and installed in C:\Users\my_user\AppData\Local\Programs\Tesseract-OCR, which was the default in the installer. When I try ...
rudinable's user avatar
  • 161
3 votes
1 answer
73 views

How to get peformance out of libcurl similar to `curl --parallel` with globbing

basically I want to do this: curl --retry 10 --retry-all-errors --remote-name-all --parallel --parallel-max 150 "https://api.pwnedpasswords.com/range/000{0,1,2,3}{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}&...
Oliver Schönrock's user avatar
0 votes
1 answer
66 views

Using the libcurl library to call the large model API

I followed the suggestion and used the cJSON library to regenerate the data section of the message.I separately constructed the header and data parts in the message initiated by curl, and then used ...
L JF's user avatar
  • 17
2 votes
1 answer
77 views

Type of expression is ambiguous without a type annotation when calling a C function from Swift

I'm trying to call this C function from Swift and getting a compilation error: // header CURLcode curl_easy_setopt_callback(CURL *curl, CURLoption option, size_t (*param)(char*, size_t, size_t, void*)...
Vitaliy's user avatar
  • 720
-1 votes
1 answer
102 views

Adding libcurl to CLion/VS 2022 projekt c++

How can I add libcurl library in CLion (Windows), step by step? I downloaded .zip from page and right now I have curl-8.9.1 folder. In case someone knows how to add libcurl to vs 2022, it could also ...
Olivia's user avatar
  • 1
0 votes
1 answer
48 views

CURL - Sending PDF failing with Laravel

I'm sending a PDF file via CURL in Laravel: <?php namespace App\Http\Controllers\EmailSender; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable;...
Erbi Silva's user avatar
0 votes
0 answers
73 views

Implement hard coded ssl certificate with libcurl and openssl

i have a c++ application which connects to my https authentication server. I want to prevent mitm attacks because i dont want users to be able to crack my program. I have implemented string encryption,...
caprisonne's user avatar
0 votes
0 answers
43 views

Why does including a linking path in my GCC compile command with libcurl break compilation? [duplicate]

My goal is to be able to use cJSON and libcurl for a current C project. I am able to use libcurl WITHOUT any linkers/linker path options. When I add the linker path to my GCC compile options, I get a ...
Toost's user avatar
  • 21
0 votes
1 answer
86 views

Loading curl config file through curl API

I'm using libcurl API in a C++11 application. Since curl has several options, I would like the application to be able to load all of the options from a configuration file. I saw that the command-line ...
Marco Montevechi Filho's user avatar
1 vote
1 answer
2k views

LibCurl code:35 - Message: schannel: failed to receive handshake, SSL/TLS connection failed

When I execute my script, I encounter the error LibCurl code:35 - Message: schannel: failed to receive handshake, SSL/TLS connection failed . I've already set the following options in my C++ code to ...
Anees's user avatar
  • 87
0 votes
1 answer
108 views

C++ CURL POST request with headers & data

I am new to C++ and I am trying to make a POST request API call. If anyone could point out what I am doing wrong, it would be greatly appreciated. The function in question is "tokens". #...
Nomad's user avatar
  • 1
0 votes
0 answers
116 views

FTP error: The connection with the server was reset

I'm using libcurl for FTP. My code seemed to be running fine and files were uploaded as I expected. But after a while, I found the connection went wrong and the error message is here. FTP Folder Error:...
renfeiyu's user avatar
0 votes
1 answer
62 views

How can I write equivalent libcurl code for a curl command with -d option and -X PUT option?

I'm tring to implement payhip Software License Keys usage API. I've succeeded in issuing the following curl command; curl https://payhip.com/api/v1/license/usage -d "product_link=MY_PRODUCT" ...
Ueda Takeyuki's user avatar
0 votes
1 answer
192 views

ImportError: pycurl: libcurl link-time version (8.1.2) is older than compile-time version (8.4.0) MacOS 14.0 Sonoma

Context - I'm not a Python developer by trade and have always developed in the cloud, but now need to make a simple Python script that uses Pycurl to download data. I've been struggling with getting ...
Nagen Sahu's user avatar
0 votes
0 answers
30 views

Libcurl multi: removing completed transfer before checking for messages, will the message be still in the queue?

I have a situation where, using the multi-interface, I have a set of running transfers, and at some point I would like to stop one of them, even if I'm not sure if the transfer has already completed ...
ABu's user avatar
  • 12.4k
-2 votes
1 answer
143 views

POST buffer to file using libcurl in C++

upload.php: <?php $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = strtolower(pathinfo(...
shawnixer's user avatar
0 votes
0 answers
50 views

Can‘t get git-remote-http binary after compile git with --with-curl option

I need a version of Git that supports the remote-http functionality. Due to certain constraints, I am unable to use a package manager and can only compile from source. My machine is running CentOS 6. ...
zfbt's user avatar
  • 1
0 votes
0 answers
118 views

Intermittent SSL cURL error 35 in production environment

I'm encountering an intermittent SSL error in our production environment that’s causing significant issues. Here are the details: Exemple: [2024-07-08 17:50:06] production.ERROR: cURL error 35: ...
AdBess's user avatar
  • 11
0 votes
2 answers
963 views

I'm getting lot of undefined reference errors while installing curl 8.8.0 even though I'm using latest version of openSSL 3.3.0

I downloaded the latest tar file from curl official site and trying it build it. I followed these steps : cd curl-8.8.0 sudo ./configure --with-openssl sudo make but after I do sudo make at last I get ...
Shashank Shekhar's user avatar
-2 votes
1 answer
114 views

curl/curl.h header file undefined reference to 'curl_easy_...' error(C++) [duplicate]

I'm currently trying to use curl in c++. I copied include folder in curl to my project folder, so include path seems nothing wrong. But when I try to compile my codes to make .exe file, undefined ...
gyuka08's user avatar
0 votes
1 answer
90 views

C return libcurl response from example as parameter

I'm following the code from this libcurl example and everything seems to work perfectly as a standalone, so i wanted to make it a function in its own file to reuse in other code. I added two ...
KiraraVS's user avatar
  • 162
1 vote
2 answers
638 views

libcurl curl_easy_perform reports "Couldn't resolve host name" (code 6)

I am getting this error deterministically and immediately every time I run the code below. I am trying to use libcurl that I have built from source using nmap and using the recommended procedure and ...
Jaroslav's user avatar
0 votes
1 answer
44 views

How to make libcurl work with other web connected libraries

I have a c++ libcurl sending emails while TWS API is running. TWS API connects on port 4002. Periodically I send an email with libcurl and it holds the contens of some of the data sent from TWS API. I’...
grizzlyborg's user avatar
1 vote
0 answers
317 views

cURL error 7: Failed to connect to 51.104.35.223 port 80: Connection refused

Suddenly I am getting this error on most of my APIs. Any help will be appreciated. I am trying to hit GET and POST APIs. Both are giving me this curl issue: "exception": "GuzzleHttp\...
WonderShare's user avatar
-1 votes
1 answer
36 views

Get invalid json format from Neo4j using libCurl

The CypherQuery I used is {“statements” : [{ “statement” : “MATCH (n:ns0__Meas) RETURN n LIMIT 25” }]}. I've been reading the return String via CURLOPT_WRITEDATA, but the format of the returned json ...
user20297975's user avatar
0 votes
1 answer
117 views

SFTP with private key as a buffer in curl

How to connect to remote server by just providing private key as a string/ buffer in SFTP and libcurl client in C++. I want to connect to remote server using SFTP and libcurl by only providing ...
wika's user avatar
  • 83
0 votes
1 answer
213 views

Not able to send https request with libcurl

I am trying to run below example with libcurl #include <stdio.h> #include <curl/curl.h> int main(void) { CURL* curl; CURLcode res; curl_global_init(CURL_GLOBAL_DEFAULT); ...
Gaurav K's user avatar
  • 2,975
0 votes
0 answers
62 views

Using Libcurl and C++ , program not fetching content from the website

My program seems to make a http request but apparently is not fetching content. I am trying to fetch the content of the web every second , store it and compare it to see if the content fetched is any ...
Sheikh Shessi's user avatar
0 votes
1 answer
85 views

Not able to run libcurl sample example after compiling it from GIT source with cmake

I downloaded my source code from GIT link (https://github.com/curl/curl) and build it with cmake GUI It did show issues with ZLIB, LibPSL, LibSSH2 which I was not able to resolve. and I did get the ...
Gaurav K's user avatar
  • 2,975
0 votes
0 answers
69 views

Send email using C with the curl library, not working

I need to send an email using C, I'm trying to do this using the curl library. However, when trying to run the program it does nothing and simply returns this message in the console: Process finished ...
Skeff Igor's user avatar
0 votes
0 answers
799 views

How to build and link OpenSSL and libCURL statically using CMake with FetchContent?

I am trying to use CMake build system using the CLion IDE for a project. I need to get libCURL and OpenSSL from the github repo using FetchContent. I want to first build OpenSSL statically and then ...
mercy's user avatar
  • 11
-1 votes
1 answer
127 views

Add URI Request to LibCurl Post command

I am using ubuntu 22.04 and libcurl 7.81.0 to create and send onvif post command. I originally got everything working in python, but am unable to use python in the final project. Therefore I'd like to ...
notARobot's user avatar
0 votes
1 answer
90 views

Telegram bot not sending messages

#include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl; CURLcode response; char* token = "wont post my bot token here"; char* channel_id = "...
paspielka's user avatar
0 votes
0 answers
924 views

Why do I get cURL Receive Error (Error Code 56)

I am using libcurl to make HTTPS requests from a device to a local test server. The test server seems to respond to other clients correctly, just not to this device. So, it probably does not have any ...
Bornak's user avatar
  • 87
0 votes
0 answers
84 views

How to close print message of libcurl (curl_easy_perform)?

I’m using libcurl intrface curl_easy_perform to POST data to server in interval. libcurl version: 8.5.0 Following is my source code. // Set the URL of your Flask server: *this->port_* is port ...
user24093926's user avatar
2 votes
0 answers
160 views

How to correctly compile git to a static binary with HTTPS support?

I need a git binary with https support in a distroless Docker image. I'm using musl C library and compiler - installed from Ubuntu repo - to statically compile git and all of its dependencies (libcurl,...
Karol Jędrzejczyk's user avatar

1
2 3 4 5
65