On our company servers due to security purposes our main SysAdmin only allows a few HTTP methods to pass through like (
PUT, etc.) and
HEAD is not one of them.
Zabbix Monitoring on them to check if it pings correctly and if domain is down or not. What I do now is getting all response header and response body and check if it returns 200 OK or not.
The problem is due to many requests per second and timeouts I get lots of false errors therefore I don't want to waste my bandwidth to fetch all response header and response body just to check if a website is down or not and because of
HEAD not allowed I can't do something like
curl -I (which sends a
HTTP request and only fetches response header so I could check if it returns 200 OK).
How can I send
GET HTTP request but only fetch response header via curl?