http-head ( url -- response content ) (original) (raw)

Vocabulary
http.client

Inputs

url an url or a string

Outputs

response a response
content a 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.

See also
http-head*

Definition

IN: http.client

: http-head ( url -- response content )
http-request ;