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
5
votes
2 answers

I can not install node-libcurl module

I am trying to install node-libcurl module on Ubuntu. To install, I am using the following command: npm install node-libcurl --save But I am facing this problem: node-pre-gyp ERR! Tried to download(404):…
Dalton Cézane
  • 3,672
  • 2
  • 35
  • 60
3
votes
1 answer

Can You Set An Origin Header Using node-libcurl?

I know that you can set the origin in cURL using a -H header like this: curl -H "Origin: http://foo.bar.com" --verbose \ https://example.com is there a node-libcurl way of setting -H headers? This is my current get request: const { curly } =…
imaginate
  • 567
  • 2
  • 13
3
votes
0 answers

npm install keeps failing because of node-libcurl

whatever module I try to install, I get the error below. npm ERR! path /home/ubuntu/server/node_modules/node-libcurl/node_modules/abbrev npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or…
Phillip YS
  • 784
  • 3
  • 10
  • 33
2
votes
1 answer

How can i convert my curl cURL Request to node js?

I have to create an api in node js i am creating it into curl how can i convert the cURL Request into node js. how can i pass url,header and data binary in node js? The follwing is the cURL Request? curl -v…
Mariam
  • 33
  • 1
  • 2
  • 7
2
votes
1 answer

node-libcurl obtaining wrong IP address on POST

I'm new to nodejs so this may be operator error, but I'm trying to make a POST request to PayPay's test URL. I tried using http request in nodejs, but got an odd response. I was able to get curl on the command line to work, so I figured I'd use curl…
2
votes
1 answer

TypeError: curl.setopt is not a function]

I am a newbie and trying to create an application based on poloniex.js API getting error-TypeError: curl.setopt is not a function] set node-curl(not working) and node-libcurl (partially works,but the function seems incorrectly expressed) slightly…
Oleg999
  • 23
  • 2
1
vote
0 answers

How to use node-libcurl with NETRC option

I need to make an HTTP GET using curl with netrc file with auth credentials. But I think that I'm doing something brong because I get an HTTP 200 RESPONSE but in the body there is the HTML for the authentication page of the site. This is the code…
1
vote
2 answers

Curl with digest auth

I have one endpoint, I have been testing with comand ubuntu, the endpoint require username and password, I run this: curl --digest -u username:pass --location --request POST 'http://url' \ --header 'Content-Type: application/json' so I just want…
jhon estrada
  • 113
  • 5
1
vote
0 answers

Set HTTP/2 Pseudo-Header using node-libcurl?

I'm trying to send a request to a server using node-libcurl. I have sample code using the built-in http2 library (my requirement is to use node-libcurl, this is not negotiable) which can receive a response from the server properly, but my…
Ertai87
  • 1,156
  • 1
  • 15
  • 26
1
vote
0 answers

How to build node-libcurl with curl-impersonate

I'm trying to build node-libcurl with curl-impersonate But I guess I'm unable to compile with this binding.gyp 'variables': { # Comma separated list 'curl_include_dirs%': '/home/sonisins/live/hehe/install/include', 'curl_libraries%':…
Swapnil Soni
  • 965
  • 1
  • 10
  • 26
1
vote
1 answer

nodejs node-libcurl HTTP Authorisation - problems with Bearer Auth Token

I'm coding a nodejs app to retrieve a transcript file from a site via the API. If I use a curl command line everything works fine but I'm getting an "Authoristaion Required" status code back from my nodejs code. I'm using the "node-libcurl"…
Marlowe
  • 33
  • 4
1
vote
1 answer

Making curl request with node-libcurl returns bad authentication error response

I'm trying to make a POST request to the checkr api using node-libcurl. I need to create and send background check invitation to candidates but I get a Bad authentication error response from their api. Any help? server.js const data =…
Grogu
  • 2,097
  • 15
  • 36
1
vote
1 answer

protractor node-libcurl Failed: SSL peer certificate or SSH remote key was not OK

I am trying to use node-libcurl module in my protractor project but I am getting the error : Failed: SSL peer certificate or SSH remote key was not OK const {curly} = require('node-libcurl') const { data } = await…
1
vote
0 answers

Node-libcurl post takes more time than other Node Packages like Request/Axios/Needle etc

I am planning to use this node-libcurl package for my project and did a comparison with other npm packages like Request/Axios/Needle. I used the same request to post through node-libcurl and other packages mentioned above. Looks like node-libcurl…
Chinmaya
  • 11
  • 1
1
vote
1 answer

Failed to install node-libcurl for electron 5.0.10, both on mac and windows

I can add the node-libcurl to package.json/yarn.lock by typing yarn add node-libcurl. But when going to the second phase electron-rebuild, it failed all the time. I tried many node versions with nvm from 10.11.0 to 13.5.0, all failed. I would doubt…
W.Perrin
  • 4,217
  • 32
  • 31
1
2