簡體   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