0

I created a file by

touch s%22.txt

Started a HTTP Server by

python -m http.server

And requested the file by

curl http://127.0.0.1:8000/s%22.txt

An HTTP Server error was showed:

"GET /s%22.txt" Error (404): "Not found"

I switched from http.server of python to http-server of nodejs , and got the same error.

If I replaced the file name with one without a % character, it worked fine.

How can I access a file with a % character in its name by HTTP request?

benjaminchanming
  • 538
  • 5
  • 17

0 Answers0