lör 2007-04-07 klockan 09:18 +0200 skrev André Malo: > Hmm, you may get something wrong here. The httpd does apply chunked encoding > automatically when it needs to. That is in keep-alive situations without > given or determineable Content-Length. > > Why doesn't it do it in all other cases? My answer is: because it would be > useless (as in: not of any use :-).
I don't agree fully here. chunked is not useless in the non-keepalive case. What it adds there compared to the HTTP/1.0 method of just closing the connection is error detection. A receiver seeing the connection closed before the final "eof" chunk knows something went wrong and the response is not complete. If chunked is not used the receiver usually can not tell that there was a problem. Regards Henrik
signature.asc
Description: Detta är en digitalt signerad meddelandedel
