curl expert needed - Squid proxy with curl


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:


$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);


echo $data


I get a blank page. :/

I need cURL expert to solve this problem.

You can do this very fast.

Taidot: tietojenkäsittely, Javascript, PHP, Komentosarjan asennus, Järjestelmänvalvoja

Näytä lisää: curl squid, linux curl proxy, curl using squid proxy, php squid proxy blank page, curlopt_proxyuserpwd problem vps, squid curl, curl curlopt_proxy squid, php curl squid, php proxy squid, curl php proxy curlopt_proxy, curl post squid proxy, curl squid proxy, proxy curl php, curl proxy, proxy curl, you proxy google, http proxy code, squid curlopt_httpproxytunnel, curlopt_httpproxytunnel blank, php curl_exec squid proxy, php curl squid proxy, curl proxy squid, curlopt_httpproxytunnel blank page, ntlm proxy curl php, php curl ntlm squid

Tietoa työnantajasta:
( 0 arvostelua ) Lima, Peru

Projektin tunnus: #394540