[users@httpd] mod_proxy_html and URL encoded parameters in form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

i have a problem with a reverse proxy which uses mod_proxy_html.
The application on the server to which the reverse proxy points opens a 
form which parameters then have to be posted back. The application by 
default delivers all content in ISO-8859-1 encoding. If i connect
 directly with the browser, the parameters of the form will be url-encoded
according to ISO-8859-1. That is, for example, an italian à becomes a %E0.
 
If i put in between the reverse proxy (configuration see below), 
all content is delivered by mod_proxy_html as UTF-8. Therefore the 
browser will encode an à as %C3 in the form parameters. This
parameter is passed to the backend web server without being 
changed, but it seems that the application expects ISO-8859-1 as
input and the http header of the request has been changed to ISO-8859-1 
by mod_proxy_html.

Is this an error of mod_proxy_html or am i missing something? 
I had a short look at the code of the module, but i wasn't able 
to find the point in which is determined the encoding used against
the backend server.

Any help would be very appreciated and thanx in advance!


Appendix: The config
ProxyRequests off

#----------------------------------------
# Le direttive proxypass standard
ProxyPass /www/ http://portal01.tuconti.telecomitalia.it:7001/
ProxyPass /cal/ http://ldap01.tuconti.telecomitalia.it:8080/
ProxyPass /aut/ http://ldap01.tuconti.telecomitalia.it:80/
ProxyPassReverse /www/ http://portal01.tuconti.telecomitalia.it:7001/
ProxyPassReverse /cal/ http://ldap01.tuconti.telecomitalia.it:8080/
ProxyPassReverse /aut/ http://ldap01.tuconti.telecomitalia.it:80/

#----------------------------------------
# Configurazione globale di mod_proxy_html
ProxyHTMLExtended On
ProxyHTMLStripComments Off
ProxyHTMLURLMap http://portal01.tuconti.telecomitalia.it:7001/ /www/
ProxyHTMLURLMap http://ldap01.tuconti.telecomitalia.it:8080/ /cal/
ProxyHTMLURLMap http://ldap01.tuconti.telecomitalia.it:80/ /aut/


<Location /www/>
        SetOutputFilter  proxy-html

        ProxyHTMLURLMap /       /www/ ec
        ProxyHTMLURLMap /www    /www  ec

        ProxyHTMLURLMap (['"])/   $1/www/ Rh

        RequestHeader   unset   Accept-Encoding
</Location>

<Location /cal/>
        SetOutputFilter proxy-html

        ProxyHTMLURLMap /       /cal/ ec
        ProxyHTMLURLMap /cal    /cal ec

$1/cal/$2 Rh


        RequestHeader   unset   Accept-Encoding
</Location>

<Location /aut/>
        SetOutputFilter proxy-html

        ProxyHTMLURLMap /       /aut/ ec
        ProxyHTMLURLMap /aut    /aut ec

        ProxyHTMLURLMap (['"])/   $1/aut/ Rh

        RequestHeader   unset   Accept-Encoding
</Location>

ProxyHTMLLogVerbose On
LogLevel Info



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux