V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  liliya  ›  全部回复第 3 页 / 共 3 页
回复总数  48
1  2  3  
2018-10-15 13:45:52 +08:00
回复了 xxxwyp 创建的主题 Node.js 新手小白求助 request 问题
var request = require("request");

var options = { method: 'POST',
url: 'https://gzmss.iok.la/api/v2/users/signin',
headers:
{
'content-type': 'application/x-www-form-urlencoded' },
form: { user_name: 'yeungy', password: '123456' } };

request(options, function (error, response, body) {
if (error) throw new Error(error);

console.log(body);
});
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2179 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 11:19 · PVG 19:19 · LAX 04:19 · JFK 07:19
Developed with CodeLauncher
♥ Do have faith in what you're doing.