wp_remote_head() – Performs an HTTP request using the HEAD method and returns its response.

You appear to be a bot. Output may be restricted

Description

Performs an HTTP request using the HEAD method and returns its response.

Usage

$array|WP_Error = wp_remote_head( $url, $args );

Parameters

$url
( string ) required – URL to retrieve.
$args
( array ) optional – Optional. Request arguments. Default empty array. See WP_Http::request() for information on accepted arguments.

Returns

array|WP_Error The response or WP_Error on failure.

Source

File name: wordpress/wp-includes/http.php
Lines:

1 to 4 of 4
function wp_remote_head( $url, $args = array() ) {
  $http = _wp_http_get_object();
  return $http->head( $url, $args );
}
 

 View on GitHub View on Trac