cURL / Mailing Lists / curl-and-php / Single Mail


curl itself acting as a proxy?

From: Darko Luketic <>
Date: Wed, 12 Jul 2006 10:27:38 +0200


i was reading about curl and saw this page:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, '');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, '');
curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'user:password');
$data = curl_exec();

this sounds almost like what i was looking for, except that i wouldn't want to use a
remote proxy, but i want curl to act as a proxy, passing through cookies from the client and the server.

is this possible?
Received on 2006-07-12