curl-users
Re: http/2 multiple post requests
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Oct 2014 20:22:10 +0200 (CEST)
Date: Mon, 6 Oct 2014 20:22:10 +0200 (CEST)
On Mon, 6 Oct 2014, Scott Mitchell wrote:
> curl --http2 -k '<url 1>' -H "<headers>" -d '<post body 1>' -i -o dump1_1
> --trace-ascii dump1_2 --next --http2 -k '<url 2>' -H "<headers>" -d '<post
> body 2>' -i -o dump2_1 --trace-ascii dump2_2
>
> *Note that <url 1> and <url 2> are to the same server (same IP).
>
> The behaviour I am seeing is that curl creates 2 connections.
curl will attempt to use the same connection for both (all) requests but
probably something makes the server or curl to close that connection and make
a new one for the second one.
Using -v could give you a hint.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-10-06