You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/11/03 09:49:05 UTC

[GitHub] [apisix] MagicalBomb commented on issue #8240: help request: How to get original uri in plugin

MagicalBomb commented on issue #8240:
URL: https://github.com/apache/apisix/issues/8240#issuecomment-1301856910

   > Try `$request_uri`? But care must be taken that `$request_uri` is full original request URI (with arguments), and URI components are not decoded.
   
   Thank you for reply. but `$requests_uri` not works.
   <img width="617" alt="image" src="https://user-images.githubusercontent.com/10193482/199689948-26562631-deda-4927-80d6-f38a56d7b973.png">
   <img width="617" alt="image" src="https://user-images.githubusercontent.com/10193482/199689993-997e0043-9327-4d42-b50d-abe169d67bb7.png">
   
   Here is my request: https://xxx.com/nft/1/2/info
   and the request headers upstream received are as followed:
   ```json
       "headers": {
           ....,
           "Host": "httpbin.org",
           "My-Head-1": "/nft/1/2/info",
           "My-Head-2": "/nft/1/2/info",
           "User-Agent": "HTTPie/3.2.1",
       },
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org