This should get you the total you want:
req.on( 'response', function ( data ) {
console.log( data.headers[ 'content-length' ] );
} );
I get a content length of 9404541
More Related Contents:
- Downloading images with node.js [closed]
- Node.js – get raw request body using Express
- How to modify the nodejs request default timeout time?
- Node.js: How to send headers with form data using request module?
- Nodejs: Async request with a list of URL
- how to use async await with https post request
- Module request how to properly retrieve accented characters? � � �
- Node.js promise request return
- Proper request with async/await in Node.JS
- How do I use the node.js request module to make an SSL call with my own certificate?
- How to send data from JQuery AJAX request to Node.js server
- How can I update NodeJS and NPM to their latest versions?
- How to separate routes on Node.js and Express 4?
- How to Polyfill node core modules in webpack 5
- What is the difference between –save and –save-dev?
- How to remove module after “require” in node.js?
- Extending TypeScript Global object in node.js
- Do I need dependency injection in NodeJS, or how to deal with …?
- Username and Password not accepted when using nodemailer?
- npm ERR! network getaddrinfo ENOTFOUND
- Express doesn’t set a cookie
- How to server specifc static files with express.js
- How do I handle exceptions globally with native promises in node.js?
- Cannot find runtime ‘node’ on PATH – Visual Studio Code and Node.js
- How to npm install global not as root?
- Can node.js code result in race conditions?
- Angularjs $http does not seem to understand “Set-Cookie” in the response
- Cache Control for Dynamic Data Express.JS
- Mongoose: extending schemas
- Meteor WebSocket handshake error 400 with nginx