curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $page = curl_exec($ch);As you can see, I want CURL to follow any redirects a website throws at me. And I want $page to contain the HTML of the last page loaded; however, $page seems to give me the value of just the very first page and none of the following redirects. Is there anyway I can go about this differently to solve my problem?
↧
Getting results of second page?
↧