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

curl-and-php

Re: Global SSL session ID cache ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 18 Aug 2003 16:34:56 +0200 (CEST)

On Mon, 18 Aug 2003, Caid fun wrote:

> Correct me if I'm wrong but cURL as a "Session ID cache" which
> prevents from doing a SSL handshake for each queries done by a proc
> to the same host.
>
> This works fine when you have one proc which is doing many requests.

Correct.

> I have a web site with dynamic web pages build with data retrieved
> from another web site queried via https. I'm using cURL in PHP to
> query this other web site from my own PHP pages.
>
> My problem is that the session ID cache is not used there because
> each time PHP is doing a query, it's a new instance of PHP which is
> doing this query, so starting with a empty cache.
>
> Is it planned to have a "Global session ID cache" in PHP cURL so

This is not a feature that PHP/CURL can decide to implement on its own, but it
needs to be supported by the underlying libcurl. This is meant to become
possible in the future by using the called "share-interface" of libcurl. (The
current global DNS cache should be implemented using this as well.)

There's however no time schedule or anything for this feature, so if you
really want this you need to jump in and help us get things moving.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-18