httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfhall <rfh...@uclink.berkeley.edu>
Subject [users@httpd] Content-Length being set to 0
Date Sat, 18 Oct 2003 04:06:13 GMT
We have recently switched from 1.3.26 to 1.3.27
and have encountered a problem with httpd setting
the Content-Length to 0 for HTML documents that
we are delivering via a servlet.  Other content
types (text, pdf, doc) are handled, no problem.
Setting the Content-Length to 0 occurs even if we
explicitly set it to a non-zero value in our servlet
code.

The HTML doc's can't be viewed in a browser that honors
the Content-Length header (Mozilla), but can be viewed
in IE.

Below are a couple of extracts from the jk2.log, the
first is for a text doc, 2nd for HTML doc; length (88)
is preserved for text, set to 0 for HTML (should be 532).

It's hopefully a config problem, any insight would
be appreciated. Thanks.

/Robert

=======
text file:

[Sat Oct 18 00:31:35 2003]  ( info) [mod_jk2.c (465)]: mod_jk.translate(): 
uriMap 
/courseweb-qa/util/docdownload/2003/Fa/INFOSYS/290/002/TestSyllabusXXX.txt lb: 
lb
[Sat Oct 18 00:31:35 2003]  ( info) [mod_jk2.c (362)]: mod_jk.handler() per 
dir worker for 0x1b34f8 0x198d98
[Sat Oct 18 00:31:35 2003]  ( info) [mod_jk2.c (394)]: mod_jk.handler(): new 
rpool[Sat Oct 18 00:31:35 2003]  ( info) [mod_jk2.c (405)]: modjk.handler() 
Calling lb:lb 0x198d98
[Sat Oct 18 00:31:35 2003]  ( info) [jk_shm.c (478)]: shm.createSlot() Create 
6 0xfea80000 0xfea8c000
[Sat Oct 18 00:31:35 2003]  ( info) [jk_endpoint.c (95)]: workerEnv.init() 
create slot epStat.5
[Sat Oct 18 00:31:35 2003]  ( info) [jk_service_apache13.c (110)]: 
service.head() 200 3
[Sat Oct 18 00:31:35 2003]  ( info) [jk_service_apache13.c (119)]: 
service.head() Content-Disposition: inline; filename=TestSyllabusXXX.txt; 0 3
[Sat Oct 18 00:31:35 2003]  ( info) [jk_service_apache13.c (119)]: 
service.head() Content-Type: text/plain 1 3
[Sat Oct 18 00:31:35 2003]  ( info) [jk_service_apache13.c (119)]: 
service.head() Content-Length: 88 2 3
[Sat Oct 18 00:31:35 2003]  ( info) [jk_service_apache13.c (243)]: 
service.write()  88 (88) out of 88

============
HTML

[Sat Oct 18 00:32:40 2003]  ( info) [mod_jk2.c (465)]: mod_jk.translate(): 
uriMap 
/courseweb-qa/util/docdownload/2003/Fa/INFOSYS/290/003/test-syllabus.html 
lb:lb
[Sat Oct 18 00:32:40 2003]  ( info) [mod_jk2.c (362)]: mod_jk.handler() per 
dir worker for 0x1b34f8 0x198d98[Sat Oct 18 00:32:40 2003]  ( info) [mod_jk2.c 
(405)]: modjk.handler() Calling lb:lb 0x198d98
[Sat Oct 18 00:32:40 2003]  ( info) [jk_service_apache13.c (110)]: 
service.head() 200 3[Sat Oct 18 00:32:40 2003]  ( info) [jk_service_apache13.c 
(119)]: service.head() Content-Disposition: inline; 
filename=test-syllabus.html; 0 3
[Sat Oct 18 00:32:40 2003]  ( info) [jk_service_apache13.c (119)]: 
service.head() Content-Type: text/html 1 3
[Sat Oct 18 00:32:40 2003]  ( info) [jk_service_apache13.c (119)]: 
service.head() Content-Length: 0 2 3
[Sat Oct 18 00:32:40 2003]  ( info) [jk_service_apache13.c (243)]: 
service.write()  532 (532) out of 532



---------------------------------------------------------------------
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