curl expert needed - Squid proxy with curl

Cancelled Posted Mar 1, 2009 Paid on delivery
Cancelled Paid on delivery

Hello

I have 2 IPs from my linux VPS, I turned the ips into proxies using Squid.

I tried the proxies on my browser and they work great.

But, when I run this code with my proxy info:

<?php

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, '[url removed, login to view]');

curl_setopt($ch, CURLOPT_HEADER, 1);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);

curl_setopt($ch, CURLOPT_PROXY, '[url removed, login to view]');

curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'username:password');

$data = curl_exec($ch);

curl_close($ch);

echo $data

?>

I get a blank page. :/

I need cURL expert to solve this problem.

You can do this very fast.

Data Processing JavaScript PHP Script Install System Admin

Project ID: #394540

About the project

18 proposals Remote project Active Mar 22, 2009