cURL won't follow HTTP redirects by default, need the location option.