3000 explained code solutions for 75 technologies

curlHow to check if response if HTTP1.1

This code will return HTTP version of the response:

curl -o /dev/null -s -w "%{http_version}\n" https://onelinerhub.comctrl + c

base curl command

-o /dev/null

will ask curl to skip response body


will not display any system information


will ask curl to display specified data about request


sample URL to request


will return HTTP protocol version