Request a resource with percent sign in path
-
12-09-2019 - |
Question
I need to request a file www.myserver.de/file%.pdf
.
The file exists and requesting the renamed copy www.myserver.de/file.pdf
works.
Is this expected behaviour?
Solution
% is the character for URL escape sequences. Try using %25 which decodes to a single % sign.
OTHER TIPS
% has a special meaning in URLs, so you need to escape it in order to refer to files with %s in their names.
Try www.myserver.de/file%25.pdf
instead.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow