cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Only receive a header file

From: Justin Skists <j.skists_at_googlemail.com>
Date: Thu, 4 Mar 2010 17:17:51 +0000

On 4 March 2010 17:02, Jeff Pohlmeyer <yetanothergeek_at_gmail.com> wrote:

> On Thu, Mar 4, 2010 at 10:43 AM, Justin Skists wrote:
> > On 4 March 2010 16:31, Olaf van der Spek wrote:
>
> >> That's not a good idea.
>
> > No, it's not. I regretted mentioning it as soon as I hit send. :)
>
>
> The Content-Length header is really the only way to get an idea of
> the file's size in advance, whether you use HEAD or GET.
>

Sadly, you don't get a Content-Length header for chunk encoded responses.

Justin.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-04