GET 10% OFF on all Annual Plans. Use Code - FETCH2024

How To Follow Redirect using cURL

Follow redirect using curl

Using -l or --location one can follow redirects using cURL. Let’s understand it with a real-world example.

				
					curl -L http://www.scrapingdog.com
				
			

If you need HTTP headers in the output then you can use -i option of cURL.

				
					curl -L -i http://www.scrapingdog.com
				
			

Additional Resources