cURL / Mailing Lists / curl-users / Single Mail


Re: Curl and incorrect content-length

From: Daniel Stenberg <>
Date: Mon, 23 Feb 2009 00:24:35 +0100 (CET)

On Sun, 22 Feb 2009, Dave Artz wrote:

>> I would suggest you start comparing --trace-ascii outputs with
>> LiveHTTPHeader outputs and make sure that A) the responses really are the
>> same apart from the sizes the clients receive and B) the embedded
>> javascripts aren't what makes theb browser return the files differently!
> I see the full source in the response using Firebug/Firefox on OS X. Nothing
> interesting in --trace-ascii.


I tried it myself just now and when I use "curl --compressed [URL]" I get a
Content-Length: 2702 back.

When I get the same page with Firefox (which defaults to compressed), it gets
a Content-Length: 8487 back.

... although I didn't figure out _why_ they differ.

List admin:
Received on 2009-02-23