httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Mase'" <michele.m...@gmail.com>
Subject [users@httpd] UTF8 uri encoding mod_proxy
Date Thu, 27 Oct 2011 13:29:05 GMT
Unluckly I should manage UTF8 characters in hte URI, more exactly in
the query string.
All requests pass through an apache 2.2.x mod_proxy.

Request correctly made by Firefox
10.10.10.10    -    27/10/2011 12:23:49 CEST
4FF6BE8CC0EF4B9505FEEA75FC85954C    HTTP/1.1    GET    7
/path1/path2/detail.act
?find=136867&dir=/path1/cms/PATH1/AT2/ARG1/TREE2/&title=Bond%20for%20the%20billing%20ofthe%20attivit%C3%A0%20educationals%20for%20the%20development%20ofthe%20abilities%20(a.s.%202011/2012)
   200    39047
"http://www.example.com/path1/cms/PATH1/AT2/ARG1/TREE2/"
"Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101
Firefox/7.0.1"    566035    +    786    39366

The incorrect request made by Internet Explorer
10.10.10.10    -    27/10/2011 12:19:01 CEST
D93DE76B886AD3A8A416671EA908BA58    HTTP/1.1    GET    0
/path1/path2/detail.act
?find=136867&dir=/path1/cms/PATH1/AT2/ARG1/TREE2/&title=Bond%20for%20the%20billing%20ofthe%20attivit\xc3\xa0%20educationals%20for%20the%20development%20ofthe%20abilities%20(a.s.%202011/2012)
   502    538
"http://www.example.com/path1/cms/PATH1/AT2/ARG1/TREE2/;jsessionid=D93DE76B886AD3A8A416671AA908BA58"
   "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
.NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
2222    +    1019    726

The problem is the word attività:

Firefox correctly passes it as attivit%C3%A0
IE incorrectly passes it as attivit\xc3\xa0

Fro explorer You receive the HTTP 502 error:
"
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /path1/path2/detail.act

Reason: Error reading from remote server
"

As a workaround using the "Turn off sending URLs as UTF-8" option in
IE the request is made correctly.

How I solve it without using the IE workaround?

This is rhe rev.proxy cfg:
...
ProxyPreserveHost On
ProxyPass /path1/        http://10.20.30.40/path1/
 ProxyPassReverse /path1/        http://10.20.30.40/path1/
RewriteRule ^/path1$ /path1/ [R]
...
Regards
Michele MAsè

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