Jump to content

CURL Help : get html page


seokochin

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.