Java Reading Undecoded URL from Servlet
问题 Let's presume that I have string like '=&?/;#+%' to be a part of my URL, let's say like this: example.com/servletPath/someOtherPath/myString/something.html?a=b&c=d#asdf where myString is the above string. I've encoded critical part so URL looks like example.com/servletPath/someOtherPath/%3D%26%3F%2F%3B%23%2B%25/something.html?a=b&c=d#asdf So far so good. When I'm in the servlet and I read any of request.getRequestURI() , request.getRequestURL() or request.getPathInfo() , returned value is