bkutil/net-ping — comment on commit a3a6026ce8c1d223bb052648624646c617de48b1
File:  line 0
By bkutil:

According to RFC [1], the HEAD should be handled identically to GET, with same headers, but the response does not contain message body.

This means less data transferred. In my case, this is what I want, because of relatively frequent pings, mostly to check accessibility of a link. Also, the response time should be closer to real ping, as the server does not have to render the body. I can imagine though, that in other cases, GET would be what folks need, exactly because they want to measure 'page rendering times' remotely. Maybe making this optional would be the right thing to do here.

I tried to cover this with tests, but I'm currently struggling a bit with FakeWeb :)

[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html, section 9.4 HEAD