http-head ( url -- response data )
HTTP client > HEAD requests with the HTTP client
Next:<head-request> ( url -- request )


Vocabulary
http.client

Inputs and outputs
urla url or string
responsea response
dataa sequence


Word description
Same as http-get except that the server is not supposed to return a message-body in the response, as per RFC2616. However in practise, most web servers respond to GET and HEAD method calls with identical responses.

Errors
Throws an error if the HTTP request fails.

Definition
IN: http.client

: http-head ( url -- response data )
<head-request> http-request ;