This article is a mirror article of machine translation, please click here to jump to the original article.

View: 359|Reply: 0

HTTP/2 over TLS and HTTP/2 over Cleartext TCP for HTTP/2

[Copy link]
Posted on 2025-9-22 20:02:51 | | | |
HTTP/1.x and HTTP/2 protocols are compared
https://www.itsvse.com/thread-10023-1-1.html

HTTPS(h2) and HTTP(h2c)

Like HTTP/1.x, HTTP/2 includes HTTPS with TLS and HTTP without TLS.

HTTPS (HTTP/2 over TLS)

Encrypt communication using TLS
The identifier is h2
Example protocol:https

HTTP (HTTP/2 over cleartext TCP)

Communicate in plaintext without using TLS
The identifier is H2C
Example protocol:http

Since most common browsers only support H2, it is essentially necessary. TLS used in H2 has the following requirements:

  • TLS 1.2 or later
  • SNI extension support is required
  • The client must indicate the target domain name during TLS negotiation.
  • For TLS 1.2, the following cipher suite requirements apply:
  • Do not use the blacklisted cipher suites in RFC 7540
  • Support TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 required


All major browsers (Chrome, Firefox, Safari, Edge, etc.).Only H2 (encrypted version) is implemented and supported, not H2C

ASP.NET Core sets up the H2C protocol

The configuration is as follows:

The hardcode is as follows:

Test code:

As shown below:



(End)




Previous:MikroTik (IV) RouterOS Configuration Backup and Restore
Next:Stratum V1, V2 cryptocurrency network communicates with the pool protocol
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com