cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl and incorrect content-length

From: Daniel Stenberg <daniel_at_haxx.se>
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.

No?

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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-23