I think if the content is small enough or the content size is known, Apache uses Content-length. Otherwise, it uses chunk encoding.
- Sung > -----Original Message----- > From: Min Xu(Hsu) [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 31, 2004 1:48 AM > To: [EMAIL PROTECTED] > Subject: CGI occasionally returns Content-Length encoded page? > > > Hi, > > I am doing some simple experiments with apache CGI module. I am > using the simple "test-cgi" program that comes with the distribution. > I notice most of the times the returned page is in "chunk" encoding. > But occasionally, the returned page is in "Content-Length" encoding. > > Does anyone know why? Is apache returning error messages or doing > some caching to the dynamic contents? > > Thanks, > > -Min
