🚀 Grab 10% off on all plans. Apply code WELCOME2026 at checkout. 🚀

Add Your Heading Text Here

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
    
   
testing

Additional Resources