It depends on what you're measuring. If you just want the "ping", then send a SYN packet, wait for a SYN-ACK. You're done.
If you want to get HTTP status message, send a HEAD request. If a server handles it differently than a GET without a body, that's not your problem. As an application developer, you might do this on purpose as a health check.