↑ ↓ select, Enter open, Esc close

Check whether a website supports HTTP/2

Adjust the values, the command updates live
user@server
curl -sI --http2 https://example.com/ | head -1

Offers HTTP/2 to the server and prints the first response line. If it reads HTTP/2 200, HTTP/2 is active, while HTTP/1.1 200 means only the old protocol is spoken. On Plesk, HTTP/2 for nginx can be enabled under Tools & Settings.

Also searched as

  • check if http2 is enabled
  • test http/2 curl
  • which http version does my site use

Related one-liners

All in nginx

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.