The following code makes a get request to http://www.google.com without making a redirect but the problem is the page of http://www.google.com appears on the page like an iframe. How can i stop that? Basically hide it/stop it from happening.
Thanks to anyone who can help.
$curl_handle = curl_init();
curl_setopt( $curl_handle, CURLOPT_URL, 'http://www.google.com' );
curl_setopt( $curl_handle, CURLOPT_FOLLOWLOCATION, 0);
curl_exec( $curl_handle ); // Execute the request
curl_close( $curl_handle );