I can use a GET request to submit HTML form data. If a HEAD request is functionally identical to a GET, excluding content in the response, then should I be able to submit HTML form data with a HEAD?
The first line of the HTTP request might look something like this:
HEAD /processdata.php?first=john&last=doe&email=john@doe.com HTTP/1.1
RFC 2616 says:
The HEAD method is identical to GET except that the server MUST NOT return a
message-body in the response.
(Almost a dupe of this question, except that I want to know if I can submit HTML form data.)
Responses based upon the spec appreciated. TIA.
HEAD is the same as GET except for the response not carrying the payload.
So yes, you can send whatever you would send with GET.