curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Multi and options

From: Stephane Bortzmeyer via curl-library <>
Date: Sat, 1 Feb 2020 09:04:35 +0100

I have some interrogations about the options for the multi handles.

Options like HTTP_VERSION or CONNECT_TO can only be set for ordinary
handles, not for multi handles. This is documented
<> and, indeed if
I try to use them, libcurl complains.

But, when handles are used for HTTP/2 streams, it seems
strange. HTTP_VERSION is "global", it is for the entire HTTP session,
not for each stream. Why is it set in the ordinary handle and not in
the multi handle? Is it because multi handles are also used to manage
multiple HTTP connections?

Received on 2020-02-01