当我使用
1)向KONG添加API
curl -i -X POST \
--url http://localhost:8001/apis/ \
--data 'name=AnalyticInputHist19api' \
--data 'hosts=localhost' \
--data 'upstream_url=http://localhost:9090/AnalyticsInputHistoryController'
2)使用请求
curl -i -X GET \
--url http://localhost:8000/ \
--header 'Host: localhost'
它返回给我:
HTTP/1.1 502 Bad Gateway
Date: Fri, 30 Jun 2017 06:16:03 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: kong/0.10.3
An invalid response was received from the upstream server
请帮助我如何使用 kong 成功提出请求。谢谢!