Thanks Nils On Wed, Dec 1, 2010 at 2:32 PM, Nils Breunese <[email protected]> wrote:
> afshin afzali wrote: > > > Hi Guys, > > > > It seems that the HEAD request to document does not return content ! > > 1. A HEAD request is not supposed to return content, only the headers. > > > BEST, > > -- afshin > > > > afs...@opxi2server:~/projects/comlog_db$ curl -vi -X HEAD > > http://localhost:5984/comlog_db/3033cff2fd2d11df961de5f24f20a323 > > 2. Using curl you need to use the -I or --head flag to perform a HEAD > request, not -X HEAD. See 'man curl' for more information. > > Nils. > > > * About to connect() to localhost port 5984 (#0) > > * Trying ::1... Connection refused > > * Trying 127.0.0.1... connected > > * Connected to localhost (127.0.0.1) port 5984 (#0) > >> HEAD /comlog_db/3033cff2fd2d11df961de5f24f20a323 HTTP/1.1 > >> User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 > > OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 > >> Host: localhost:5984 > >> Accept: */* > >> > > < HTTP/1.1 200 OK > > HTTP/1.1 200 OK > > < Server: CouchDB/1.0.1 (Erlang OTP/R13B) > > Server: CouchDB/1.0.1 (Erlang OTP/R13B) > > < Etag: "3-d3f4322af728be7b0ec3b4d45c6890f6" > > Etag: "3-d3f4322af728be7b0ec3b4d45c6890f6" > > < Date: Wed, 01 Dec 2010 10:36:50 GMT > > Date: Wed, 01 Dec 2010 10:36:50 GMT > > < Content-Type: text/plain;charset=utf-8 > > Content-Type: text/plain;charset=utf-8 > > < Content-Length: 741 > > Content-Length: 741 > > < Cache-Control: must-revalidate > > Cache-Control: must-revalidate > > > > < > > * transfer closed with 741 bytes remaining to read > > * Closing connection #0 > > curl: (18) transfer closed with 741 bytes remaining to read > > afs...@opxi2server:~/projects/comlog_db$ > > ------------------------------------------------------------------------ > VPRO > phone: +31(0)356712911 > e-mail: [email protected] > web: www.vpro.nl > ------------------------------------------------------------------------ >
