您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
21 行
445 B
21 行
445 B
#!/usr/bin/env node
|
|
'use strict';
|
|
|
|
var https = require('https')
|
|
, fs = require('fs')
|
|
, path = require('path')
|
|
, ca = fs.readFileSync(path.join(__dirname, 'client', 'my-private-root-ca.crt.pem'))
|
|
, port = process.argv[2] || 4443
|
|
;
|
|
|
|
var options = {
|
|
host: 'local.ldsconnect.org'
|
|
, port: port
|
|
, path: '/'
|
|
, ca: ca
|
|
};
|
|
options.agent = new https.Agent(options);
|
|
|
|
https.request(options, function(res) {
|
|
res.pipe(process.stdout);
|
|
}).end();
|
|
|