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 <[email protected]> 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,
[email protected]

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

Reply via email to