Follow HTTP redirects (max. 5 redirects).

Request method doesn't follow HTTP redirects, resulting in empty strings. So I set the CURLOPT_FOLLOWLOCATION flag to 1, and set the CURLOPT_MAXREDIRS to 5.