2808 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
curl

base curl command

-o /dev/null

will ask curl to skip response body

-s

will not display any system information

-w

will ask curl to display specified data about request

https://onelinerhub.com

sample URL to request

http_version

will return HTTP protocol version