Is it possible for PHP to follow a URL? -


Is it possible to take a URL, wait for the redirects to go through, and then the URL of the page Get on?

  $ cr = curl_init ("http://example.com"); Curl_setopt ($ cr, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ cr, CURLOPT_FOLLOWLOCATION, 1); Curl_exec ($ Crores); $ Info = curl_getinfo ($ cr); Echo "url =". $ Info ["url"];  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -