Added support to follow or to ignore redirects.