Content-Length header with HEAD requests?

To me it looks like the HTTP 1.1 RFC is pretty specific:

The Content-Length
entity-header field indicates the size of the entity-body, in decimal
number of OCTETs, sent to the recipient or, in the case of the HEAD
method, the size of the entity-body that would have been sent had
the request been a GET
.

Leave a Comment