monkeyDluffy6017 commented on issue #7838: URL: https://github.com/apache/apisix/issues/7838#issuecomment-1241686455
request APISIX ``` curl -i -X GET "http://127.0.0.1:9080/%25E4%25B8%25AD%25E6%2596%2587/foo?arg=10" HTTP/1.1 200 OK Content-Type: application/octet-stream Transfer-Encoding: chunked Connection: keep-alive Date: Fri, 09 Sep 2022 08:37:46 GMT Server: APISIX/2.15.0 ``` upstream nginx log: ``` ==> logs/access.log <== 127.0.0.1 - - [09/Sep/2022:16:37:46 +0800] "GET /%25E4%25B8%25AD%25E6%2596%2587/foo?arg=10 HTTP/1.1" 200 35 "-" "curl/7.58.0" ``` APISIX will not change your URL, it just forward your URL if you don't use any plugin. So where is the problem? Many web server, like nginx, it will decode the url-encoded URL before match the route. So I guess you could encoded your URL twice like the example above. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
