繁体   English   中英

使用Restler的Node.js和SSL

[英]Node.js and SSL with Restler

我已经安装了最新版本的Node.js,但SSL和Restler仍然存在问题。 哪里出问题了? 谢谢!

请求

var restler = require('./lib/restler');

restler.get('https://example.com/', {
  username: 'username',
  password: 'pass'
}).on('complete', function (data) {
  console.log(data);
});

响应

WARNING: SSL not supported in your version of node JS

node.js:54
    throw e; // process.nextTick error, or 'error' event on first tick
    ^
Error: ECONNRESET, Connection reset by peer
    at Client._readImpl (net.js:144:14)
    at Client._onReadable (net.js:424:22)
    at IOWatcher.onReadable [as callback] (net.js:153:10)

node.js中的SSL支持存在错误且不完整:

http://jsconf.eu/2010/speaker/techniques_for_a_single_stack.html

我认为您必须等到稳定为止。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM