Curl 8.16.0 introduced --out-null,
the more efficient and portable version of
curl https://host.example -o /dev/nullThe transfer is done in full, all data is received and checked, but the bytes are not written anywhere.
Example:
curl "https://example.com" --out-null