nodejs https请求
 发布于 13 年前  作者 scorpio  36000 次预览  最后一次回复是 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 回复
QwerBoy

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