How can I find where I will be redirected using cURL?

Posted by Prem Tiwari | Updated on | PHP

If you just want to find out where a page redirects to, I’d use the advice here, and just use Curl to grab the headers and extract the Location: header from them:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers