nodejs https Error: socket hang up with localhost
https://stackoverflow.com/questions/22544975/nodejs-https-error-socket-hang-up-with-localhost
Mar 21, 2014 · nodejs https Error: socket hang up with localhost. I have this small code snippet that targets an endpoint hosted on localhost. var https = require ('https'); var options = { hostname: 'localhost', port: 443, path: '/', method: 'GET', agent: false }; var req = https.request (options, function (res) { console.log ("statusCode: ", res.statusCode); console.log ("headers: ", …
DA: 39 PA: 86 MOZ Rank: 2