I'm using the NodeJS https module to fetch pages and process them during testing. I can't find any mention of following redirects either there or in the http module documentation.
From experience I would assume that an https.request
does not automatically follow redirects (through response.headers.Location
), but I'd like to be sure.
Nodejs doesn't follow redirects by default.
The following article explains this http://syskall.com/how-to-follow-http-redirects-in-node-dot-js/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With