incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: HEAD requests
Date Tue, 18 May 2010 22:48:44 GMT
Hi Norman,

On 19 May 2010, at 00:42, Norman Barker wrote:

> Hi,
> 
> does couchdb support http head requests? I would like to retrieve the
> e-tag but not the body? I have tried
> 
> curl -X HEAD "http://localhost:5984/test/myid"
> 
> but it just hangs.

This is "a feature" of curl. To do HEAD requests use:

  curl -I http://localhost:5984/test/myid

CouchDB supports HEAD requests for most resources where it makes sense.

Cheers
Jan
--


Mime
View raw message