curl-library
Re: persistent ssl session
Date: Wed, 17 Mar 2004 10:25:09 +0100
Thanks, that was just the info I needed :)
Yes I intended to use the php curl module but I may also just write a C
CGI using libcurl. The web app I need it for won't be that complex.
Daniel Stenberg wrote:
> On Wed, 17 Mar 2004, Watz wrote:
>
>
>>I have a simple question....is there way to open up an https/SSL connection
>>via curl lib (i.e. through php) and fetch multiple documents through the
>>same open SSL session without closing it ?
>>
>>Or is this even the standard behaviour ?
>
>
> It is indeed possible and standard behaviour, you just re-use the same handle
> to request multiple files. Of course it also requires that the server keeps
> the connection alive. (And if it doesn't, libcurl also features an SSL session
> ID cache to make SSL-reconnects a lot faster.)
>
> HOWEVER, you speak of PHP here and then I assume you're using the PHP/CURL
> module to do curl stuff. The last time I checked, it _does not_ support
> multiple transfers on the same handle. I believe they are fixing that flaw in
> PHP5.
>
> (Yes, it is mildly annoying that the binding adds restrictions.)
>
Received on 2004-03-17