【发布时间】:2018-10-05 07:20:56
【问题描述】:
我在我的 AWS 服务器上开发了一组 API。 当我执行 npm start 时,应用程序会在 aws localhost 的特定端口上启动。 我可以在终端窗口中使用 curl 命令访问 api。 例如:
curl -s -X GET \
"http://localhost:6001/getAssetDetails?assetId=1"\
-H "content-type: application/json"
如何使用安装在我的主机上的 postman 从我的主机系统访问 api?
如何从 windows 主机的 web 浏览器访问 AWS 服务器的 localhost 应用程序?我应该从我的主机访问哪个 URL?
【问题讨论】: