black_muffin
Registered Member
- Jan 8, 2008
- 65
- 8
Hello guys 
I have a CentOS VPS with 2 IPs.
How do I use them as proxies?
I tried this in curl.
It doesn't display anything. And i know this code is Ok.
So my question is:
- Do I need to set up something to use the IPs as proxies with cURL?
Please advice me on this, in exchange I can give you:
- cURL scripts (gmail creator, youtube creator)
- help with cURL and php
- good karma
- advice on youtube marketing or in general.
Any help will be greatly appreciated
I have a CentOS VPS with 2 IPs.
How do I use them as proxies?
I tried this in curl.
Code:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.google.com/');
curl_setopt($ch, CURLOPT_USERAGENT, "Internet Explorer 6.0 (Windows XP)");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, '64.10.344.51:100');
curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'myusername:mypassword');
$data = curl_exec($ch);
curl_close($ch);
echo $data;
?>
It doesn't display anything. And i know this code is Ok.
So my question is:
- Do I need to set up something to use the IPs as proxies with cURL?
Please advice me on this, in exchange I can give you:
- cURL scripts (gmail creator, youtube creator)
- help with cURL and php
- good karma
- advice on youtube marketing or in general.
Any help will be greatly appreciated