Thanks for your reply, I was desesperate, seeing that no one could help.
That's really weird.
I have tested a simple HTML page, served through Mason (basic handler:
HTML::Mason::ApacheHandler), in order to see the Apache Query String and the
Mason one, and compare them, using this basic code:
<html>
<head>
<title>Testing Request Args</title>
</head>
<body>
Server Query String: <% $r->args %>
<br/ >
Mason Query String: <% keys %{$m->request_args} %>
</body>
</html>
Then, I'm manually typing a GET request in my browser, to make the test
simple:
http://127.0.0.1/test.html?arg1=%b6&arg2=%C6&arg3=Hello
"Server Query String" is showing: "arg1=%b6&arg2=%C6&arg3=Hello ", which is
OK.
"Mason Query String" is just showing: "arg1¦" : it has discarded all the
args after and including arg2. In fact, whenever an arg is having an escaped
code %xx with xx > BF, the arg is discarded, and all the args after the
faulty one.
For information, I'm using Apache/2.0.54 (Win32) mod_perl/2.0.1 Perl/v5.8.7,
alongwith Mason v1.3x.
I don't know where this problem is coming from (is it due to the fact I'm
using Win32?). Could I test something further to try isolate the problem?
Thanks,
Lionel.
----- Original Message -----
From: "Scott Lanning" <[EMAIL PROTECTED]>
To: "Lionel MARTIN" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Sunday, February 19, 2006 8:58 PM
Subject: Re: [Mason] Problems to deal with %ARGS when escaped chars are in
the requested URL (args not taken into account at all)
On Tue, 31 Jan 2006, Lionel MARTIN wrote:
I'm currently running Mason with Apache/2.0.54 (Win32) mod_perl/2.0.1 and
Perl/v5.8.7.
I have got a problem, that's perhaps simple.
When I'm making a request to my server, using:
http://MyServer/MyPage?start=A
and then asking my handler the %ARGS keys, it can find the 1 key: start
(with
the value 'A')
When I'm requesting http://MyServer/MyPage?start=%20, this is working as
well
(%20 is the escaped sequence for the space character)
But when I'm requesting http://MyServer/MyPage?start=%D6, this is not
working,
my handler can't find any key in %ARGS. (%D6 is the escaped sequence for
the Ö
character)
It works on my system:
HTML::Mason 1.32, Apache 1.3.34 Debian, mod_perl 1.29.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users