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

curl-and-php

curl itself acting as a proxy?

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

Hello

i was reading about curl and saw this page:
http://www.higherpass.com/php/tutorials/Using-Curl-To-Query-Remote-Servers/3/

<?
$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();
curl_close($ch);
?>

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?
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-07-12