Requests_Session::head() WordPress Method

The Requests_Session::head() method is used to make a HEAD request to a given URL. This is useful for checking if a resource exists without downloading it.

Requests_Session::head( $url,  $headers = array(),  $options = array() ) #

Send a HEAD request


Source

File: wp-includes/Requests/Session.php

	public function head($url, $headers = array(), $options = array()) {
		return $this->request($url, $headers, null, Requests::HEAD, $options);
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.