You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Norman Barker <no...@gmail.com> on 2010/05/19 00:42:46 UTC

HEAD requests

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.

thanks,

Norman

Re: HEAD requests

Posted by Norman Barker <no...@gmail.com>.
Hi Jan,

thanks, that fixed it!

Norman

On Tue, May 18, 2010 at 4:48 PM, Jan Lehnardt <ja...@apache.org> wrote:
> 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
> --
>
>

Re: HEAD requests

Posted by Jan Lehnardt <ja...@apache.org>.
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
--