[英]Can node js make a restful service call
Is it possible for a node js application to make a call to another web application on Tomcat with a restful service call? Node js应用程序是否可以通过静态服务调用来调用Tomcat上的另一个Web应用程序?
Regards 问候
Yes, a node.js application can do any sort of networking you would like including make a REST call to another server. 是的,node.js应用程序可以进行任何类型的联网,包括对另一台服务器进行REST调用。
The request
module makes this particularly easy, though it can also be done with just the plain http
module with a bit more coding. request
模块使此操作特别容易,尽管也可以仅使用带有更多编码的普通http
模块来完成。
References: 参考文献:
How to make remote REST call inside Node.js? 如何在Node.js中进行远程REST调用? any CURL?
任何CURL?
Calling a REST API from a NodeJS Script 从NodeJS脚本调用REST API
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.