curl-library
Re: HTTPS session for many posts
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 25 Sep 2014 23:33:17 +0200 (CEST)
Date: Thu, 25 Sep 2014 23:33:17 +0200 (CEST)
On Thu, 25 Sep 2014, fz_at_zie.ch 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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-09-25