Nodejs 动态选择http.get和https.get
问题描述: 最近写了个下载图片的Nodejs爬虫server,当时直接使用的http.get,在线上测试时发现对于https的请求时直接报错。_http_client.js:131 throw new Error('Protocol "' + protocol + '" not supported. ' + ^Error: Protocol "https...
原创
2018-08-22 12:29:07 ·
5032 阅读 ·
2 评论