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