SocketTools .NET Edition

FileTransfer.HttpVersion Enumeration

The supported protocol versions used with HTTP connections.

[Visual Basic]
Public Enum FileTransfer.HttpVersion
[C#]
public enum FileTransfer.HttpVersion

Remarks

The HttpVersion enumeration specifies the protocol version to be used when establishing a connection to an HTTP server. If your application specifies a version that is not supported by the server, the client may attempt to automatically fall back to an earlier supported version of the protocol.

If Version20" is specified and the server does not support HTTP/2, the client will automatically fall back to HTTP/1.1. If a connection using an earlier version cannot be established, the connection attempt will fail.

If Version30 is specified, the client will attempt to establish a connection using HTTP/3 over the QUIC protocol. If the server does not support HTTP/3, the client must wait for the connection attempt to time out before falling back to HTTP/2. This may result in noticeable delays. If you experience long request times when using HTTP/3, verify that the server supports the QUIC protocol and that the platform supports HTTP/3.

HTTP/3 support requires Windows 11 (version 21H2 or later) or Windows Server 2022.

Members

Member Name Description
Version09 HTTP/0.9 — The original version of the HTTP protocol. This version only supports simple GET requests and does not include support for headers or status codes. It is considered obsolete and is rarely used today.
Version10 HTTP/1.0 — Introduced support for response headers and status codes. Connections are not persistent by default, and each request requires a new connection. Still supported by many servers for backward compatibility.
Version11 HTTP/1.1 — The most widely supported version of the protocol. Adds persistent connections, chunked transfers, pipelining, and many improvements over HTTP/1.0. This is the default version used by most applications.
Version20 HTTP/2 — A major revision of the protocol that introduces multiplexed streams, binary framing, header compression, and improved performance. This version of the protocol requires TLS and will always enable a secure connection.
Version30 HTTP/3 — Based on the QUIC transport protocol. Provides faster connection establishment, improved multiplexing, and better performance on unreliable networks. Still being adopted, and not all servers support it yet.

Requirements

Namespace: SocketTools

Assembly: SocketTools.FileTransfer (in SocketTools.FileTransfer.dll)

Version: 12.0.3041.1380