http - Semicolon in URLs -


i have url that: localhost:8080/demo/

and when call localhost:8080/demo/''''''''' working fine.

but when try localhost:8080/demo/;;; not working , return http code 404 not found.

i tried few special character # % \ ? / , returned 400 too.

anyone can explain me? thank much!

these special characters not directly allowed in urls, because have special meanings there. example: / separator within path, ? marks query-part of url, # marks page-internal link, etc.

quoted wikipedia: percent-encoding reserved characters:

when character reserved set (a "reserved character") has special meaning (a "reserved purpose") in context, , uri scheme says necessary use character other purpose, character must percent-encoded. percent-encoding reserved character involves converting character corresponding byte value in ascii , representing value pair of hexadecimal digits. digits, preceded percent sign (%) used escape character, used in uri in place of reserved character.

for example: ; reserved character. therefore, when ; shall occur in url without having special meaning, needs replaced %3a.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -