-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.HTTPVersion
Andrew Lambert edited this page Aug 18, 2025
·
6 revisions
libcURL.HTTPVersion
Protected Enum HTTPVersion
None=0
HTTP1_0=1
HTTP1_1=2
HTTP2=3
HTTP2TLS=4
HTTP2PriorKnowledge=5
HTTP3=6
HTTP3_Only=7
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. |
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.