RE: Large content size value

Jamie Lokier said:
> Travis Snoozy (Volt) wrote:
> > For reference, the size of the file is 4,368,281,840 bytes, 4GiB is
> > 4,294,967,295 bytes, and the difference is 73,314,545 bytes (the value
> > of Content-Length + 1). The actual GET returns a 501/Not Supported,
> > but the erroneous HEAD reply is still Bad and Wrong.
>
> Just a small note: 4GiB is 4,294,967,29_6_, and the difference is
> equal to the reported Content-Length.  Overflow is as expected for a
> 32-bit integer.

That's what I get for using "calculator" without thinking. Glad to see
you're paying attention, though ;).

> I wonder if it ever reports negative values like Content-Length: -1?

Nope; it appears to be an honest-to-goodness unsigned value (as it darn well
should be).

HEAD http://localhost/testdir/test2.gbg HTTP/1.1
Content-Length: 0
Host: localhost
Connection: close

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
X-Powered-By: ASP.NET
Connection: close
Date: Sat, 30 Dec 2006 00:52:28 GMT
Content-Type: application/octet-stream
Accept-Ranges: bytes
Last-Modified: Sat, 30 Dec 2006 00:50:54 GMT
ETag: "9183988fac2bc71:909"
Content-Length: 2346074112



-- Travis

Received on Saturday, 30 December 2006 01:13:38 UTC