当我在网络浏览器中错误输入网页的网址时,我偶然发现了这一点。
为什么访问http://example.com/%
会导致抛出HTTP 400 Bad Request错误?服务器是否在百分号之前或之前期待其他内容?
它似乎发生在Apache和Nginx服务器上。
(服务器:cloudflare-nginx)https://superuser.com/%
(服务器:Apache)http://mozilla.org/%
20
http://superuser.com/%71%75%65%73%74%69%6f%6e%73%2f%37%35%39%39%35%39%2f%77%68%79%2d %64%1207%65%73%2D%74%68%65%2D%70%65%72%63%65%6E%74%2D%73%69%67%6E%2D%69%6E%2D %61%2D%75%72%图6c%2D%63%61%75%73%65%2D%61%6E%2D%68%74%74%70%2D%34%30%30%2D%62 %61%64%2d%72%65%71%75%65%73%74%2d%65%72%72%6f%72工作正常!
—
Nick T