Apache 2 changes Tomcat JSP generated Header

S

Son KwonNam

I've made file download Servlet.
And the file names downloaded have 8bit latin1 characters.
So I put the following header.

response.setHeader("Content-Disposition", "inline; attachment;
filename=\"" + filename + "\";");

response.setHeader("Content-Length", ""+file.length() );

It works fine if I use tomcat 4.1 only.
but Apache 2 + mod_jk2 + tomcat 4.1 It does not work.
I check the HTTP header, and I found When I call the servlet from
8080(Tomcat) port, the header's 8bit characters are ok,
but from 80(Apache) port, the header's 8bit charactes are changed to
some other 8bit characters, so the downloaded file names also strange.

How to make Apache not to do anything to the header?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top