The below server code is working fine for 5GB file using
wget http://localhost:11146/base/bigFile.zip
but not using client side code.
Serve
var request = require('request')
request('http:/localhost:11146/base/bigFile.zip', function (error, response, body) {
console.log('error:', error); // Print the error if one occurred
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
console.log('body:', body); // Print the HTML for the Google homepage.
});
It should be http://localhost:11146/base/bigFile.zip
instead of http:/localhost:11146/base/bigFile.zip