cURL follows Location header