Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 62729 invoked from network); 28 Apr 2010 10:58:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Apr 2010 10:58:13 -0000 Received: (qmail 60740 invoked by uid 500); 28 Apr 2010 10:58:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 60583 invoked by uid 500); 28 Apr 2010 10:58:09 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 60575 invoked by uid 99); 28 Apr 2010 10:58:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Apr 2010 10:58:08 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.coallier@gmail.com designates 209.85.218.221 as permitted sender) Received: from [209.85.218.221] (HELO mail-bw0-f221.google.com) (209.85.218.221) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Apr 2010 10:58:01 +0000 Received: by bwz21 with SMTP id 21so13225955bwz.35 for ; Wed, 28 Apr 2010 03:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=baT7MP8RPK12F1nJcypuCuO5Gdjr8AsBtiMIy+x++yg=; b=njLALraldcne5liYeapxY9QQ0XvkkT0zPW2seOkiWxd9hxeOBmoQt5mFgiw9zlW5i4 +MAxUZrsEpet2SMjWP3r8WT2OHyosdjHXw1Cg1O/xuR+DXymq53mwaANBlHJn07mP8Ra UHU5OsT3a+a0Ch4Fbn8l4OCIUnaryKr/AylaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=I/opquhtap1PY72faY7d9ZnA+RxFl7v0HCPPSz6qcCqi7qx4UIZzEQr8uJmG1Ow2ab c2jFh3rNiR2U5tCe+/EXUNRUYTcKnXo/Opdu82qf3vCq4FkgZwtKyLaXfwBy6J781jFR FBRWgWZMtWPGBrSwMgtP0NswC53Qa08NkGELs= MIME-Version: 1.0 Received: by 10.204.11.22 with SMTP id r22mr1484125bkr.120.1272452260863; Wed, 28 Apr 2010 03:57:40 -0700 (PDT) Received: by 10.204.122.207 with HTTP; Wed, 28 Apr 2010 03:57:40 -0700 (PDT) In-Reply-To: <4BD81274.8040101@vpro.nl> References: <5F20F813-F1F5-4786-97F9-3416C1468B5B@gmail.com> <4BD81274.8040101@vpro.nl> Date: Wed, 28 Apr 2010 11:57:40 +0100 Message-ID: Subject: Re: Couchdb document size From: David Coallier To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org No matter what client you are using really, just make a HEAD request to the resource and it should return you the headers data (As Content-Length) just as if it was the GET request but without an actual body. On a more general note that might get be of interest, this is a RESTful concept, and usually real RESTful services will allow you to post HEAD requests to resources which you can use it to validate the existence of (user, document, etc) without requesting the whole document body (Or for any potential reasons for that matter) Hope it helps :) 2010/4/28 Nils Breunese : > Alexander Uvarov wrote: > >> curl -I -X HEAD "http://localhost:5984/dbname/your_doc_id" > > -I (or --head) already does a HEAD request, so there is no need to add > -X HEAD. > > Nils. > > De informatie vervat in deze =C2=A0e-mail en meegezonden bijlagen is uits= luitend > bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informat= ie > bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekk= ing > van deze informatie aan derden is voorbehouden aan geadresseerde. De VPRO > staat niet in voor de juiste en volledige overbrenging van de inhoud van = een > verzonden e-mail, noch voor tijdige ontvangst daarvan. > --=20 David Coallier