From 2a869bc8d1e9ad020a3f2071d72474b28cb87bc2 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Wed, 21 Jan 2009 13:37:00 -0500 Subject: [PATCH] stub for HEAD support --- framework/Http_Client/lib/Horde/Http/Client.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/framework/Http_Client/lib/Horde/Http/Client.php b/framework/Http_Client/lib/Horde/Http/Client.php index 6563967a8..3470be3b0 100644 --- a/framework/Http_Client/lib/Horde/Http/Client.php +++ b/framework/Http_Client/lib/Horde/Http/Client.php @@ -160,6 +160,17 @@ class Horde_Http_Client } /** + * Send a HEAD request + * @TODO + * + * @return ? Probably just the status + */ + public function head($uri = null, $headers = array()) + { + return $this->request('HEAD', $uri, null, $headers); + } + + /** * Send an HTTP request * * @param string $method HTTP request method (GET, PUT, etc.) -- 2.11.0