Questions tagged [node-libcurl]

Libcurl bindings for Node.js. Use this tag for questions related to the module usage.

node-libcurl is a native addon for Node.js that makes available the libcurl library for Node.js apps. node-libcurl supports all protocols libcurl supports.

Project page: https://github.com/JCMais/node-libcurl

28 questions
1
vote
1 answer

Generate cURL string representation from libcurl instance

I was wondering if it is possible to generate cURL string from a libcurl instance. For example if I'm using the node binding for libcurl as below, const curl = new Curl(); curl.setOpt(Curl.option.URL, "https://httpbin.org/get"); Is it possible to…
scriptonist
  • 697
  • 4
  • 9
1
vote
0 answers

Error accessing GCP Cloud Storage public object

I'm getting following error while reading SSL cert file from GCP Cloud Storage. * Connected to [my.website.com] (A.b.C.D) port 443 (#0) * found 6 certificates in /home//[CAINFO].crt * found 597 certificates in /etc/ssl/certs * ALPN,…
1
vote
2 answers

Convert curl upload files to request in Node.JS and write zip file

I am trying to convert the following curl to node request. curl -F files[]=@database.mdb 'https://www.rebasedata.com/api/v1/convert?outputFormat=mysql&errorResponse=zip' -o output.zip I have tried using request or node-libcurl but can't find a way…
Paul
  • 93
  • 2
  • 15
1
vote
1 answer

Command npm install fails due to node-libcurl

When doing npm install it fails due to node-libcurl. I have it succesfully working on MacOSX but on my ubuntu box it is not working. Any suggestions on what is going wrong and what I can do to fix it. Node.js Version: v9.4.0 NPM Version:…
Austin McCalley
  • 392
  • 1
  • 4
  • 17
0
votes
0 answers

Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found

I am developing a nodejs code and I am using the node-libcurl library to obtain the response time of a web page, but when I want to run the code on a linux machine I get the following error: node:internal/modules/cjs/loader:1340 return…
Reinier
  • 1
  • 1
0
votes
1 answer

Node Libcurl (node-libcurl) - trouble with multipart/form-data request

I have a particularly stubborn api that I've only been able to get to work with the following curl request: curl --request PUT -H "Content-Type: multipart/form-data" -H "Authorization: Bearer abcd" -F…
Trevor
  • 16,080
  • 9
  • 52
  • 83
0
votes
1 answer

node-libcurl installation fails on MacOS Catalina: clang: error: no such file or directory: '/usr/include'

I simply wanted to install insomnia-inso on a Mac (Catalina) which has a dependency to node-libcurl and got the following error: npm install -g node-libcurl > node-libcurl@2.2.0 install…
jonashackt
  • 12,022
  • 5
  • 67
  • 124
0
votes
0 answers

How do i fix curl linker errors

i'm trying to use libcurl in my C++ application, but i'm running into linker errors. I did add the include and lib folder in my project and added the .lib file in the additional dependencies. Error: LNK2019 unresolved external symbol…
thoo
  • 9
  • 1
  • 2
0
votes
1 answer

How to get response/body in text using node-libcurl?

I am using node-libcurl to communicate with my API which is supposed to return a plain JSON response. I am using the following code: // cURL instance const curl = new Curl(); const close = curl.close.bind(curl); // cURL…
Zlatan Omerović
  • 3,863
  • 4
  • 39
  • 67
0
votes
1 answer

How to tweak an existing nodejs module and use it outside node_modules folder?

I'm using the module node-libcurl. When I deploy my app to Heroku it crashes when I initiate a function from the module (that works on my computer). Thus I would like to add some logging to the existing node-libcurl module to troubleshoot the issue,…
kevinob
  • 558
  • 2
  • 6
  • 14
0
votes
2 answers

Getting status, body, and headers from node-libcurl

I have the following code in a Node.js application: var curlStatus = ""; var curlBody = ""; var curlHeaders = ""; var curlInfo = curl.on('end', function( statusCode, body, headers){ curlStatus = statusCode; curlBody = body; …
Sara Fuerst
  • 5,688
  • 8
  • 43
  • 86
0
votes
1 answer

Node js working on second or third call

I have written a node.js server which creates a server and prints the output when done with an asynchronous function. While I am able to get the correct output always in the console.log. The same is not getting reflected in my response. Here is my…
Prashant Singh
  • 3,725
  • 12
  • 62
  • 106
-1
votes
1 answer

Error in ./node_modules/node-libcurl/lib/binding/node_libcurl.node

I'm a C++ developer and beginner in the Node world. I would like to create a CEP and VUE based Photoshop plugin. The skeleton plugin works well. I would like to use node-libcurl package for this plugin. I installed libcurl - It's OK. npm i…
Carlos
  • 13
  • 6
1
2