couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filipe David Manana <fdman...@gmail.com>
Subject Re: Content-Length: 0 when curling -I attachments.
Date Sun, 09 May 2010 18:52:33 GMT
Hi Richy,

what about if you do curl -X HEAD ... ?

My curl's man page says:

" -l/--list-only
              (FTP) When listing an FTP directory, this switch forces a
name-only view.  Especially useful if you  want  to
              machine-parse the contents of an FTP directory since the
normal directory view doesn't use a standard look or
              format.

              This option causes an FTP NLST command to be sent.  Some FTP
servers list only files  in  their  response  to
              NLST; they do not include subdirectories and symbolic links."

It seems that flag is for FTP only, not HTTP.

On Sun, May 9, 2010 at 5:05 PM, Richy <klemmster@gmail.com> wrote:

> Hey there,
>
> I always get "Conent-Length: 0" when using:
>
>
> curl -I ...6dc348cef2297a8f4f2280d4100003b6/qrcode.png
> HTTP/1.1 200 OK
> Server: CouchDB/0.11.0 (Erlang OTP/R13B)
> ETag: "28-439f0ba4de3216513bf59c4bc10b293d"
> Date: Sun, 09 May 2010 15:58:45 GMT
> Content-Type: image/png
> Content-Length: 0
> Cache-Control: must-revalidate
>
>
> curl -I 6dc348cef2297a8f4f2280d4100005af/testiohone.mp4
> HTTP/1.1 200 OK
> Server: CouchDB/0.11.0 (Erlang OTP/R13B)
> ETag: "12-a2fa92efb63b45ee014fa0838ad329e6"
> Date: Sun, 09 May 2010 15:56:55 GMT
> Content-Type: video/mp4
> Content-Length: 0
> Cache-Control: must-revalidate
>
> This is true for Attachments only and similar to this bug:
> https://issues.apache.org/jira/browse/COUCHDB-385
>
> Is this a known issue and how can i fix it?
> Thanks
>
> Richard
>



-- 
Filipe David Manana,
fdmanana@gmail.com

"Reasonable men adapt themselves to the world.
Unreasonable men adapt the world to themselves.
That's why all progress depends on unreasonable men."

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message