haggholm: (Default)
[personal profile] haggholm

HTTP 1.1, as per RFC 2616, supports no less than three ways of specifying the length of the response to a simple GET request:

  • In a Content-Length header, as in HTTP 1.0;
  • By means of the header Connection: close, which means content follows and ends only when we close the connection on you;
  • By means of the header Transfer-Encoding: chunked, which means that the message is transferred in chunks, each of which begins with a chunk size—in hex, unlike the decimal representation of Content-Length—and ends with good old CRLFCRLF.
I do not know why this is so, but it annoys me, particularly as it turns out that some servers will ignore you if you specify, in your GET request, HTTP version 1.0 (I'm looking at you, Slashdot—as the first example I came across).

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

haggholm: (Default)
Petter Häggholm

July 2025

S M T W T F S
  12 345
6789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags