在命令行实现
$ curl -d "<message>" http://127.0.0.1:4151/pub?topic=name
nodejs
发起 pub
该如何实现呢
https://github.com/request/request#forms
直接使用nodejs的request模块,
发送http请求
$ curl -d "<message>" http://127.0.0.1:4151/pub?topic=name
nodejs
发起 pub
该如何实现呢
https://github.com/request/request#forms
直接使用nodejs的request模块,
发送http请求