mdh67899 commented on issue #1428:
URL: 
https://github.com/apache/apisix-dashboard/issues/1428#issuecomment-783216376


   I am sure apisix does not have this limitation
   
   this is my route:
   ```
   curl http://127.0.0.1/apisix/admin/routes/343018010123961021 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -s | python -mjson.tool
   {
       "action": "get",
       "count": "1",
       "node": {
           "key": "/apisix/routes/343018010123961021",
           "value": {
               "create_time": 1613984266,
               "hosts": [
                   "www.test.com"
               ],
               "id": "343018010123961021",
               "methods": [
                   "GET",
                   "HEAD",
                   "POST",
                   "PUT",
                   "DELETE",
                   "OPTIONS",
                   "PATCH"
               ],
               "name": "HelloWorld",
               "priority": 0,
               "status": 1,
               "update_time": 1613984398,
               "upstream_id": "100",
               "uris": [
                   "*/hello/*"
               ],
               "vars": {}
           }
       }
   }
   ```
   and we use curl request works fine(in my environment, apisix listen 80 
port,and upstream_id 100 is a simple http server)
   
   ```
   curl "http://127.0.0.1/v1/hello/userinfo?id=10"; -H "host:www.test.com" -v
   * About to connect() to 127.0.0.1 port 80 (#0)
   *   Trying 127.0.0.1...
   * Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
   > GET /v1/hello/userinfo?id=10 HTTP/1.1
   > User-Agent: curl/7.29.0
   > Accept: */*
   > host:www.test.com
   >
   < HTTP/1.1 200 OK
   < Content-Type: application/json; charset=utf-8
   < Content-Length: 992
   < Connection: keep-alive
   < Date: Mon, 22 Feb 2021 09:01:01 GMT
   < Server: APISIX
   <
   {
       "ContentLength": 0,
       "Form": null,
       "Header:": {
           "Accept": [
               "*/*"
           ],
           "User-Agent": [
               "curl/7.29.0"
           ],
           "X-Forwarded-For": [
               "127.0.0.1"
           ],
           "X-Forwarded-Host": [
               "www.test.com"
           ],
           "X-Forwarded-Port": [
               "80"
           ],
           "X-Forwarded-Proto": [
               "http"
           ],
           "X-Real-Ip": [
               "127.0.0.1"
           ]
       },
       "Host": "www.test.com",
       "Method": "GET",
       "Proto": "HTTP/1.1",
       "ProtoMajor": 1,
       "ProtoMinor": 1,
       "RemoteAddr": "10.64.58.34:36992",
       "RequestURI": "/v1/hello/userinfo?id=10",
       "TransferEncoding": null,
       "url": {
           "Scheme": "",
           "Opaque": "",
           "User": null,
           "Host": "",
           "Path": "/v1/hello/userinfo",
           "RawPath": "",
           "ForceQuery": false,
           "RawQuery": "id=10",
           "Fragment": "",
           "RawFragment": ""
       }
   * Connection #0 to host 127.0.0.1 left intact
   }
   ```


----------------------------------------------------------------
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.

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


Reply via email to