2
我已經安裝了最新版本的Node.js,並且仍然存在SSL和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);
});
響應在node.js中
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)
你能提供更多的信息嗎?你在MacOSX,Ubuntu,Windows上運行嗎?你是否安裝了libssl的開發版本?節點會很高興地在沒有ssl標頭的情況下編譯,但當然ssl不會工作。 – 2010-11-20 11:42:47