HTTP & JSON
httpHead
$httpHead[]
$httpHead[url;(body)] sends an HTTP HEAD request. Like the other HTTP functions, it returns an empty string; the status code of the response is then available with $httpStatus (a HEAD response has no useful body).
Syntax
bdfd
$httpHead[url;(body)]
Parameters
| Parameter | Description |
|---|---|
url |
The URL to request. Required; an empty URL raises “HTTP request URL cannot be empty.” |
body |
Optional request body. |
Headers added with $httpAddHeader before the call are sent with the request and then cleared.
Example
$httpHead[https://example.com]
Status: $httpStatus