seokochin
-
Posts
4 -
Joined
-
Last visited
Never
Posts posted by seokochin
-
-
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.
-
I was to use different IPs for each post.
Is it possible ?
I think it can be done with CURLOPT_PROXYUSERPWD
-
I am designing a program using curl.Its function is to post a data to a site using curl.But I want to use different IPs(not my server IP).
And the IP will be different in each use.
So please help.
curl range option failure
in PHP Coding Help
Posted
It will be good if you can put whole code ???