By default, cURL doesn't follow HTTP redirects (302) without the -L option.