Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

I'm trying to limit bots from accessing my web-server by using Cloudflare and closing any connection which is not from Cloudflare's IP addresses. However, bad bots still: Can do service discovery ...
Ronin's user avatar
  • 1,723
6 votes
2 answers
7k views

ADP's REST API requires that a SSL certificate and private key be sent with every request. When I use the 'standard, Node.js HTTP(S) module: require('dotenv').config() const fs = require('fs') const ...
craig's user avatar
  • 26.3k
0 votes
1 answer
59 views

I'm getting an error TS2339: Property 'on' does not exist on type 'ClientRequest'. while I'm defining an extension method: export {}; import {ClientRequest} from 'https'; declare module 'https' { ...
vovahost's user avatar
  • 36.3k
6 votes
1 answer
875 views

I'm trying to connect to a nodejs https server from a apache web server hosted javascript client and I'm getting an error message : 522 - Failed to load response data: No data found for resource with ...
Arivan Bastos's user avatar
1 vote
1 answer
672 views

I'm making a call to an API that requires both a HTTPS Basic Authentication and certification. The cert has a passphrase. This is my config variable: const cert = fs.readFileSync('path.pem'); const ...
Mendel Groner's user avatar
0 votes
3 answers
270 views

const downloadurl = ['url1', 'url2'] const filename = 'run.jar' downloadurl.forEach((urls) => { https.get(urls, (httpsres) => { const path = `${installationdirectory}/${filename}` ...
Martín Rubina's user avatar
1 vote
1 answer
873 views

this is a difficult question to ask because I am mystified, but let's see… I am comparing Got with https.get, and have the following, bare simple code that works. Both Got and https.get return exactly ...
punkish's user avatar
  • 15.6k
0 votes
0 answers
933 views

I am running hundreds of parallel HTTP requests for all different domains using node http module. If I understood it correctly, node http module does dns lookup using worker threads and hence number ...
Mary123's user avatar
  • 41
1 vote
1 answer
89 views

Is node http request actually fired after req.end or after http.request ? Context: I am using node js http module and wanted to understand what happens between: var req = http.request(options) // ...
Mary123's user avatar
  • 41
1 vote
0 answers
340 views

I am using nodeJS https.Agent to make a call. I have configured the Agent such a way that it should re-use the socket. How do I know if the same socket being re-used when I make subsequent the call ...
vikas kv's user avatar
  • 396
0 votes
1 answer
1k views

can we replicate curl resolve host in node-fetch or any other node http library. curl https://www.example.net --resolve www.example.net:443:127.0.0.1
Faizan Ahmed's user avatar
2 votes
1 answer
2k views

I am doing reactjs project when I tried to run npm start ./node_modules/node-fetch/src/index.js Module not found: Can't resolve 'node:http' in 'C:\Users\Aorat\OneDrive\Desktop\Fam-Jam-Family-...
Scott Nguyen's user avatar
0 votes
1 answer
5k views

I'm trying to download a .xlsx file from a website through web scraping, I've done the entire process until I access the temporary url that the website generates for the download. When I open the file ...
Gianlucca Claudino's user avatar
1 vote
2 answers
4k views

I am trying to write a few wrappers around Node HTTP/S module requests, without using axios. node-fetch or any other 3rd party module. For example, I want to have functions sendGet, sendPost, ...
Petr Bělecký's user avatar
1 vote
0 answers
1k views

I'm trying to setup an HTTPS server that proxies requests to changing targets that also enforce HTTPS. this is because I want to setup an intercepting https proxy, terminate ssl, modify data and send ...
toti's user avatar
  • 53
0 votes
1 answer
464 views

I'm trying to get the HTTP headers and the HTTP body from the IncomingMessage instance provided by the async hook HTTPINCOMINGMESSAGE: import asyncHooks = require("async_hooks"); import { ...
brillout's user avatar
  • 7,478
1 vote
1 answer
377 views

I'm trying to reproduce this Python POST request (verified working) with node.js. It is a fairly simple POST request sending and receiving XML data. However, I am getting The request sent by the ...
AF7's user avatar
  • 3,342
0 votes
1 answer
645 views

I am using aws serverless mongodb template which works fine with mongodb queries and other local processing I want make http request to get some data for that i tried. http/http/axios/request But it ...
rohan padwalkar's user avatar
1 vote
1 answer
1k views

I am using request module in Node JS (v8.12) to call a third party API. Since the API is not very reliable and due to lack of better option I am timing out the call after 2 seconds in case if there is ...
pythoniesta's user avatar
0 votes
1 answer
990 views

I'm using http-proxy module and I'm trying to send the request to port 1234 and gets its reply back. But in the apache logs I can see that request is only to /. The documentation says to use toProxy: ...
user13339470's user avatar
0 votes
1 answer
206 views

I have a function to add files in js-ipfs via URL. async function addFile(url) { try { for await (const file of node.add(urlSource(url))) { console.log('Hash for ' + url.substring(url....
xd1936's user avatar
  • 1,211
1 vote
1 answer
337 views

I'm getting the error in my Express + NodeJS app. I'm using an API from CoinAPI.io, and I've had an issue in the past with getting a Byte array as a response from the API. I've looked into the issue ...
danielschnoll's user avatar
0 votes
0 answers
104 views

I am trying to send and receive a file in a typical client/server interaction: Client sends over a zip file. Server receives and saves it. Client const options = { hostname: "localhost", port:...
Andry's user avatar
  • 16.9k
2 votes
0 answers
460 views

I have an electron app, with a module in which I need to send multiple (5000) successive requests to a restful Endpoint. Testing the successive requests to this Endpoint from the browser window yields ...
Anis Mekacher's user avatar
0 votes
1 answer
508 views

I have code like this: const https = require('https'); const request = async (data, options) => { return new Promise((resolve, reject) => { const req = https.request(options, function(...
Dave Stein's user avatar
  • 9,454
1 vote
2 answers
116 views

I'm making a cryptocurrency dashboard for a project, and I'm completely new to Node and Express. This is what I have currently app.get('/search', function(req,res){ res.writeHead(200, {'Content-...
danielschnoll's user avatar
2 votes
1 answer
2k views

I'm trying to set up a https server with mutual authentication. I created the key and the certificate for the server (auto-signed). Now I use firefox to connect to the server without providing any ...
Zanna_37's user avatar
  • 172
0 votes
1 answer
97 views

Have to take multiple SOAP requests and need to take back all the returns together. What I do now is: for (let this_target of list_of_target) { const req = http.request(conn, (res) =&...
HufflepuffBR's user avatar
3 votes
0 answers
160 views

I want to make a request to an AWS ElasticSearch instance. The instance has access control to allow access to one or more AWS accounts or IAM users. The role represents a Cognito Identity pool that ...
user1283776's user avatar
  • 22.2k
4 votes
2 answers
250 views

I have 13.000 documents from MongoDB where I have address line + Postcode, im trying to make a request for each of them to Google's geocoding API and get LAT + LONG for them so I can have them appear ...
SebastianG's user avatar
  • 9,764
1 vote
1 answer
5k views

I am requesting a rest server from nodejs by using nodejs request module. I want to cancel stream if incoming data size is out of allowed limit.the purpose here is to ensure that my network is not ...
Baltazarr's user avatar
0 votes
1 answer
2k views

I'm confused. Occasionally when my web api receives data it mixes the data up between objects and it appears to me that the global object in the file is actually being persistent.. Here is the basic ...
Johnathan Enslin's user avatar
1 vote
0 answers
1k views

I am trying to use SSL secured api which Two Way SSL Authentication. Have already created self signed certificate using keytool -genkey command and created 3 key files (selfsigned.crt , selfsigned.p12,...
user avatar
0 votes
1 answer
406 views

Succeeding requests: $ url='https://svn.tools.ietf.org/svn/tools/xml2rfc/trunk/cli/xml2rfc/data/xml2rfc.css' $ curl "$url" $ wget -qO - "$url" $ python -c 'import webbrowser; webbrowser.open("'"$url"'"...
A T's user avatar
  • 14k
1 vote
0 answers
73 views

I make https request with Node's https.request() and listen to response 'data' event: const req = https.request('https://stackoverflow.com/', res => { res.on('data', (chunk) => { ...
Alex Velickiy's user avatar
0 votes
1 answer
1k views

I am injecting some script tags in a website, with source such as http:localhost:3000/css/my-page-css.css . While its working on almost all sites, there's this particular website that is somehow ...
Tripti Rawat's user avatar
2 votes
1 answer
1k views

I have two instances of the same node app running on port 3000 and 4000. I would like to have the following behavior: https://localhost/dev ==> http://localhost:3000 https://localhost/prod ==> ...
blueren's user avatar
  • 2,888
0 votes
1 answer
388 views

I am trying to read the content of a request using node http native library I want to make a POST request, which I already do successfully, but then use the saved chunks of the response to output ...
CoderRoller's user avatar
  • 1,279
2 votes
2 answers
807 views

I am running a secure websocket proxy to a TCP service. This uses a standard http.Server set up like: var webserver = http.createServer( ...
chaos's user avatar
  • 125k
0 votes
1 answer
289 views

I'm working with an AWS lambda function that has a sort of 'map/reduce' feel to it. But the 'map' part of it, that is the part that does multiple calls is async. Using the Node 6 STD lib, is there a ...
Jono's user avatar
  • 3,683
2 votes
1 answer
1k views

I try with https.request but when I want access to cookie response, this don't appear on resource headers. HTTP/HTTPS. Example code: let https = require('https'); https.request({ ...
Olaf Erlandsen's user avatar
0 votes
1 answer
2k views

I am using the request module to crawl a list of URLs and would like to limit the number of open sockets to 2: var req = request.defaults({ forever: true, pool: {maxSockets: 1} }); req(...
NightOwl's user avatar
  • 1,099
16 votes
2 answers
34k views

To the best of my knowledge, I am doing the same thing using 2 different approaches: const https = require("https"); const axios = require("axios"); let httpsAgent = new https.Agent({...
Lucas's user avatar
  • 15.1k
0 votes
2 answers
7k views

I am currently buildings proxy using nodejs, which use following syntax for sending and receiving https request and response. However in my project, the response is a liitle bit larger, so typically, ...
Chen Chen's user avatar
0 votes
0 answers
672 views

I am currently working with project that huge amount of https requests (~15K~20K per second) need be sent via node.js server (node v4.2.6). The general relevant code structure can be seen at final of ...
Chen Chen's user avatar
0 votes
1 answer
5k views

I have 2 apps I am looking to add to my profile website which itself is an express app. I want to run these apps under a /projects route such that we can have localhost/projects/app1 and localhost/...
Ayabonga Qwabi's user avatar
0 votes
1 answer
1k views

My Node.js code to make https POST request is, var req = https.request(options, function(res) { var data = ''; res.on('data', function(chunk) { data += chunk; }); res.on('end', function(...
RaR's user avatar
  • 3,243
2 votes
1 answer
5k views

I am trying to get a Token with my node.js server. The code below gets executed when someone calls the REST-API of my server (within the processing of this call the server makes several calls ...
IntegerWolf's user avatar
  • 1,240
0 votes
1 answer
162 views

I am writing an AWS Lambda using the Node https package and my request to login to an API keeps timing out. The Lambda setup is fine: -- once I have copied the ca-bundle.crt file into /etc/pki/tls/...
JohnB's user avatar
  • 188
1 vote
0 answers
80 views

I'm trying to make a Node https.request to a Docker daemon on a remote machine. Everything works fine when connecting to daemons with around 40 containers (running or not running) - or when I limit ...
Daniel Setréus's user avatar