curl-library
Re: Using Proxy with cURL and Persistent Connections
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Apr 2002 10:24:49 +0200 (MET DST)
Date: Thu, 18 Apr 2002 10:24:49 +0200 (MET DST)
On Wed, 17 Apr 2002, Gustaf Hui wrote:
> If I were to use proxy with cURL handle, does that mean the only open
> connection will be to the proxy? And the same connection will be reused,
> no matter what URL it is?
Uh, yes. For all URLs except https:// ones.
> How about tunneling SSL through the proxy?
That's the exception.
> Is it more efficient to reuse handle that has prior request to the same
> host, or does it matter?
The curl handle is always better re-used. If it can it'll re-use a
connection, but there are other kinds of caches too that it'll benefit from.
> The proxy is only used for caching, so for SSL, is it better off without
> the proxy?
For SSL, proxies serve no useful purpose. Correct.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-04-18