Peruttu

curl expert needed - Squid proxy with curl

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.

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

About the Employer:
( 0 reviews ) Lima, Peru

Projektin tunnus: #394540