Title: Problem with mod_proxy and UTF-8 encoding

Hi all

I'm running a reverse proxy using Apache 2.0.54_1 on Solaris 9 and using mod_proxy to proxy requests to a backend IIS Webserver. Everything works fine except when  the German umlaut character appears in the URL. As a test I have a file called grĂ¼ntest.txt (there is an umlaut over the u). In the GET request from the client I see that the u umlaut has been UTF-8 encoded but the proxy request back to the IIS is encoded differently and results in a '400 Bad Request' response from the IIS. Here are the details

The GET request in the access log looks like this

127.0.0.1 - - [12/Jul/2006:12:12:55 +0200] "GET /sites/playground/Freigegebene%20Dokumente/gr%C3%BCntest.txt HTTP/1.1"

but in debug mode I saw that the proxy request in the errors file is encoded differently

[Wed Jul 12 12:12:55 2006] [debug] proxy_http.c(67): proxy: HTTP: canonicalising URL //10.96.64.103/sites/playground/Freigegebene Dokumente/gr\xc3\xbcntest.txt

[Wed Jul 12 12:12:55 2006] [debug] proxy_http.c(1059): proxy: HTTP: serving URL https://10.96.64.103/sites/playground/Freigegebene%20Dokumente/gr\xc3%BCntest.txt

[Wed Jul 12 12:12:55 2006] [debug] proxy_http.c(186): proxy: HTTP connecting https://10.96.64.103/sites/playground/Freigegebene%20Dokumente/gr\xc3%BCntest.txt to 10.96.64.103:443

If I send the above GET request to the IIS server directly it all works fine so I know the problem is on the reverse proxy.

 
Has anyone run into this problem before? Is this a bug in mod_proxy? I've spent the last few days googling and searching mailing lists for answers but haven't found any. I would really appreciate any help anyone can offer here.

Thanks a million.

Niamh



Reply via email to