nodejs https请求
发布于 12 年前 作者 scorpio 35079 次浏览 最后一次编辑是 8 年前

我想发起一个node https请求,不是搭建服务器,但是发现

var options = {
host: 'api.weibo.com',
port: 443,
path: '/oauth2/access_token',
method: 'POST',
headers: {
	'Content-Type': 'application/x-www-form-urlencoded',
	'Content-Length': postdata.length
}

这样端口应该是对的,但是回调是说http请求。。。。 求解决

2 回复

我找到文档了。。。。http://nodejs.org/api/https.html

楼主怎么解决的; 官方文档只有auth basic认证; oauth2的怎么认证?

回到顶部