Skip to content

libcURL.HTTPVersion

Andrew Lambert edited this page Aug 18, 2025 · 6 revisions

libcURL.HTTPVersion

Enumeration

Protected Enum HTTPVersion
 None=0
 HTTP1_0=1
 HTTP1_1=2
 HTTP2=3
 HTTP2TLS=4
 HTTP2PriorKnowledge=5
 HTTP3=6
 HTTP3_Only=7

Remarks

The HTTPVersion controls which version(s) of HTTP to use .

HTTPVersion Comment
None Default, currently this is equivalent to HTTP1_1
HTTP1_0 Use HTTP version 1.0.
HTTP1_1 Use HTTP version 1.1.
HTTP2 Use HTTP version 2 if supported by the server, otherwise fallback to HTTP1_1.
HTTP2TLS Use HTTP version 2 if supported by the server AND the request uses TLS, otherwise fallback to HTTP1_1.
HTTP2PriorKnowledge Use HTTP version 2 for requests that do not use TLS without falling back to HTTP1_1.
HTTP3 Use HTTP version 3 if supported by the server, otherwise fallback to older versions.
HTTP3_Only Use HTTP version 3 without falling back to older versions.

See also

Clone this wiki locally