cURL / Mailing Lists / curl-library / Single Mail


Re: HTTPS session for many posts

From: Daniel Stenberg <>
Date: Thu, 25 Sep 2014 23:33:17 +0200 (CEST)

On Thu, 25 Sep 2014, wrote:

> i am asking data's from a https server with post method. Is is working fine,
> but libcurl open for every post / receive Data, new https session.
> How can i open the https session, send a posts and receive the Answer, send
> the next post, receive the answer, (100 times post and receive) and final
> close the https session.

If you re-use the same handle for all transfers then libcurl will try to
re-use the connection as far as possible, and if it can't (usually that happen
because the server closes the connection) it caches the SSL session-id for
faster subsequent handshakes.

List admin:
Received on 2014-09-25