tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Semicolon URI encoding and RFC
Date Mon, 09 May 2011 13:03:33 GMT
2011/5/9 Mindaugas Žakšauskas <mindas@gmail.com>:
> Hi,
>
> I was trying to read RFCs 3986 and 2396 to understand some subtleties
> about URI encoding.
>
> In particular I am interested about whether semicolon (;) needs to be
> percent escaped as, e.g. http://site/some;path VS
> http://site/some%3Bpath when outputting e.g. HTML href element.
>

If ";" is part of the actual path, it must be escaped.

If ";" starts a "path parameter" it must be unescaped. One well-known
example is ";jsessionid" path parameter.



Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message