Skip to content

libcURL.HTTPVersion

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

libcURL.HTTPVersion

Enumeration

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

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.

See also

Clone this wiki locally