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 <[email protected]>: > 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 e-mail en meegezonden bijlagen is uitsluitend > bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informatie > bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking > 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. > -- David Coallier
