This should work for you if the web server is able to respond to HEAD requests (this will not perform a GET
request):
curl -I http://www.example.org
curl -I http://www.example.org
As an addition, to let cURL follow redirects (3xx statuses) add -L-L
.