seokochin Posted November 17, 2008 Share Posted November 17, 2008 I have done this : <?php $ip="192.197.213.115:8160"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://google.com'); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1); curl_setopt($ch, CURLOPT_PROXY,$ip); curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'seo_dev:tp0mga'); $data = curl_exec($ch); curl_close($ch); echo $data; ?> Here I am getting a blank page as output but its taking the complete html content.But not display as html. So what to do ? I want to get google.com from that proxy IP to my browser. Link to comment https://forums.phpfreaks.com/topic/133025-curl-help-get-html-page/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.