You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Carlos Fernández <cf...@notariado.org> on 2004/04/16 12:12:44 UTC
[users@httpd] Content-disposition with non-us filename, Content-disposition with
Hi,
I'm trying to http download a file whose name has latin characteres via
servlet.
The servlet composes a http request with the header:
Content-disposition: attachment; filename="fileNameWithLatinCharacters"
If the request is dispatched to the browser directly by tomcat,
fileNameWithLatinCharacters (header and open save box dialog) is
correctly formed and displayed.
When the request is dispatched through apache + jk2,
fileNameWithLatinCharacters gets malformed.
ISO-8859-1 and es language are configured in apache configuration file.
But apache seems to go on rewritting that header.... ¿any idea?
That's the log:
-------------
Request:
--------
GET
/webmail/attachment?¤twindow=1&instance=foo&session_id=017F2165E2CF9F6EDC2F80F023EE709C&msgId=<67...@osiris>&msgNum=1&webmail_folder=INBOX&filename=IPP_0012ñññáá.GIF&contentType=image/gif
HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */*
Accept-Language: es
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Host: des.correonotarial.org
Connection: Keep-Alive
Cookie: JSESSIONID=017F2165E2CF9F6EDC2F80F023EE709C
Apache response:
------------------
HTTP/1.1 200
Date: Fri, 16 Apr 2004 09:56:34 GMT
Server: Apache/2.0.47 (Unix) PHP/4.3.4 mod_jk2/2.0.2 DAV/2
Content-disposition: attachment; filename="IPP_0012ñññáá.GIF" ->
*** WRONG filename ***
Content-Type: application/x-download; charset=iso-8859-1
Content-Language: es-ES
Transfer-Encoding: chunked
Tomcat response:
-----------------
HTTP/1.1 200 OK
Content-disposition: attachment; filename="IPP_0012ñññáá.GIF" -> ***
RIGHT filename ***
Content-Type: application/x-download; charset=iso-8859-1
Transfer-Encoding: chunked
Date: Fri, 16 Apr 2004 10:16:19 GMT
Server: Apache Coyote/1.0
Thanks a lot,
best regards
Carlos
---------------------------------------------------------------------
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