HEAD request with PHP

If you want to perform a HEAD request with PHP on an URL you can use the stream functionality:

Example:

For more information on PHP’s stream functions refer to the manual here: https://secure.php.net/manual/en/function.stream-context-set-default.php