Follow redirects in curl