httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Hall <rfh...@uclink.berkeley.edu>
Subject [users@httpd] Apache modifying HTTP headers
Date Mon, 20 Oct 2003 16:48:35 GMT
Hi all,

I'm new to this list, so please bear with me.

We recently moved to 1.3.27 from 1.3.26 and now have some odd behavior for
one of our Java servlets.  This servlet, 'docdownload', downloads 
syllabus docs
to the client browser.  Docs can be text, html, MS-word, pdf, and a few 
others.
All content types work fine with 1.3.26.  HTML does not work with 1.3.27.

Looking at the HTTP headers, Apache 1.3.27 sets the Content-Length to 0 when
the Content-Type is text/html, but proceeds to write the content 
anyway.  Mozilla
sees a Content-Length of 0 and stops; IE ignores the Content-Length and 
displays
the downloaded HTML doc.  Content-Length is set to 0 even though we set 
it to
the actual file length in our Java code.

 From jk2.log:

[Sat Oct 18 00:23:13 2003]  ( info) [jk_service_apache13.c (119)]: 
service.head(
) Content-Disposition: inline; filename=test-syllabus.html; 1 4
[Sat Oct 18 00:23:13 2003]  ( info) [jk_service_apache13.c (119)]: 
service.head(
) Content-Type: text/html 2 4
[Sat Oct 18 00:23:13 2003]  ( info) [jk_service_apache13.c (119)]: 
service.head(
) Content-Length: 0 3 4
[Sat Oct 18 00:23:13 2003]  ( info) [jk_service_apache13.c (243)]: 
service.write
()  532 (532) out of 532

Could there be something missing from the HTTP headers that is causing 
service.head() to
behave this way?

Any help, pointers, suggestions will be appreciated.  Thanks,
/Robert


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message