3,210 questions
Score of 0
2 answers
137 views
Get libcurl to return only a specific amount of HTML from a site
I don't want all the HTML from a specific site so I tried to alter CURL_MAX_WRITE_SIZE.
Unfortunately it still returns way more than 650,000 characters and gives me the entire site.
#include <stdio....
Score of 2
2 answers
166 views
Curl C/C++ library based application produces erroneous response for HTTP POST request
I use the following block of code to download some data from a server:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include "../...
Score of 0
2 answers
124 views
C# libcurl find which TLS version was negotiated
In my C# code, I'm using libcurl.dll and using CURLINFO_TLS_SSL_PTR = CURLINFO_PTR + 45 to determine which TLS version is being negotiated, I'm not sure if this constant is correct.
Is the code below ...
Score of 0
1 answer
55 views
Using Microsoft Graph to obtain personal distribution lists, the hard way
Microsoft Graph does not support reading/writing personal distribution lists from/to the contacts folder (if I'm wrong about this, please correct me!).
AI suggests this:
GET /users/{id}/contactFolders/...
Score of 1
0 answers
77 views
After establishing the libcurl websocket connection, data transmission and reception cannot be monitored through curl_multi_poll()
Websocket connection stage, curl_multi_poll() is useful for monitoring. However, during the data transmission and reception stage, curl_multi_poll() fails.
It is found that the CURL_POLL_REMOVE event ...
Score of 1
1 answer
114 views
Understanding CURLOPT_READFUNCTION (libcurl)
I'm using libCurl to send emails from a C++ program. I wrote the CURLOPT_READFUNCTION callback required by curl, passing a QDataStream from Qt as the userdata:
#include <QString>
#include <...
Score of 0
0 answers
99 views
FTPS Upload Freezes After Completion with libcurl in C++ (Error 425)
I’m using libcurl in C++ to upload a file via FTPS. The upload completes successfully (all bytes sent), but the connection freezes, and the server returns:
> 425 Data channel timed out due to not ...
Score of 3
3 answers
208 views
CURL: how to correctly convert signed char[2] to uint16_t
I have a simple CURL callback for a C websocket that needs to identify the closecode, but it gives me weird values when I shift it. I don't understand signed char binary representation.
size_t ...
Score of 3
2 answers
178 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, ...
Score of 2
0 answers
105 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 ...
Score of 3
0 answers
414 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 ...
Score of 2
1 answer
125 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 ...
Score of 0
0 answers
477 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 ...
Score of 1
1 answer
104 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 ...
Score of 0
0 answers
460 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':
...