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

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

 



Jens Stutte wrote:

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

libxml2 uses utf-8 internally and transcodes on input, so mod_proxy_html
determines encoding and tells libxml2.  To re-transcode on output would
be an additional overhead, which mod_proxy_html doesn't incur.  Since
transcoding filters (like mod_charset_lite) are available, it would be
superfluous for mod_proxy_html to do that too.

You could insert a transcoding filter after mod_proxy_html to get back
your iso-8859-1.  Or you insert a transcoding input filter when you
accept the form data.

-- 
Nick Kew

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