Is there a way to follow redirects with command line cURL? September 12, 2022 by Tarik Use the location header flag: curl -L <URL>