How to use follow-redirects.request:
GitHub: JayAgra/scouting-app
120 121 122 123 124 125 126 127 128 129
'Authorization': 'Basic ' + frcapi }, 'maxRedirects': 20 }; var req = https.request(options, function(res) { var chunks = []; res.on("data", function(chunk) { chunks.push(chunk);