To follow redirect using cURL you need to use the -L option. Here is a sample command that sends a GET request to our hosted version of HTTPBin and follows the redirect: curl -L https://httpbin.scrapingbee.com/redirect-to?url=https://httpbin.scrapingbee.com/headers?json Here we ask for cURL to follow redirection, and the url we hit, redirect us to the headers endpoint.
