摘要: const http = require('http'); const querystring = require('querystring'); const postData = querystring.stringify({ 'msg': 'Hello World! ----- 哈利路亚' }); const options = { hostname: '192.168.1.6'... 阅读全文
posted @ 2017-05-11 18:01 次序 阅读(433) 评论(0) 推荐(0) 编辑
摘要: const http = require('http'); http.get('http://192.168.1.6:8080/getDemo?msg=12', (res) => { const { statusCode } = res; const contentType = res.headers['content-type']; let error; if (statu... 阅读全文
posted @ 2017-05-11 18:00 次序 阅读(477) 评论(0) 推荐(0) 编辑