I need the same method as getRequestURI () , but I want to use it in the referrer. Is it possible?
I would like to turn http://www.example.com/my/path?vars=true into /my/path
http://www.example.com/my/path?vars=true
/my/path
Do you need something like this?
String refererURI = new URI(request.getHeader("referer")).getPath();
Source: https://habr.com/ru/post/923082/More articles:Why was an OutOfMemoryException thrown when using PLINQ Take ()? - c #syntax error: unexpected token "" - cssWindows 8 GUI and WPF / SilverLight / WinRT / Metro / BUILD - windows-8Linking Knockout.js on Ajax-Managed Pages - memory-leaksTechnique for prioritizing image loading in a web browser - javascriptFind jquery object inside javascript