How to use follow-redirects

Comprehensive follow-redirects code examples:

How to use follow-redirects.request:

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);