首页 > nodejs 实现 curl -d

nodejs 实现 curl -d

在命令行实现

$ curl -d "<message>" http://127.0.0.1:4151/pub?topic=name

nodejs 发起 pub

该如何实现呢 

https://github.com/request/request#forms


直接使用nodejs的request模块,
发送http请求

【热门文章】
【热门文章】