Guys when we do curl we often get a page that redirects to another page.
If we set CURLOPT_FOLLOWLOCATION to true than we can get the page.
The problem is when safe_mod is on we cannot set that to true.
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in
So I want to do it manually. Basically, I would check curl-getinfo()
There is an indicator that the page is redirected. However, redirected to where? How do I know the destination of the redirect so I can follow automatically?
This is for PhP 4.