curl itself acting as a proxy?
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, 'http://www.example.com');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, 'fakeproxy.com:1080');
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