Make curl handle redirects.