romach
7/19/2017 - 11:43 AM

Curl only response code

Curl only response code

curl -s --head localhost | head -1

curl -sL -w "%{http_code}" localhost:80 -o /dev/null