5
전자 메일을 사용하여 Windows에서 데스크톱 응용 프로그램을 작성하고 있습니다. 그래서이노드 js에서 시스템 프록시 설정을 얻는 방법
request({
url: "http://ahdas.drnh.gov.tw/index.php",
method: "POST",
proxy: this.proxyRequestUrl,
headers: {
"User-Agent": this.mainWindow.webContents.session.getUserAgent(),
"Accept": "application/json, text/javascript, */*; q=0.01",
"Accept-Encoding": "gzip, deflate",
"Cookie": cookies
},
form: {'act': 'Display/built/' + bookKey + "/" + postPageKey}
}, (err, response, body) => {
});
같은 일부 데이터를 얻을 요청을 사용하는 동안 지금은 어떻게 시스템 전체 프록시 설정을 얻을 this.proxyRequestUrl 해당 할당 할 수 있습니다, 내 자신의 프록시로 시스템 전체 프록시 설정을 사용할 필요가?
시스템 프록시 설정과 관련하여 [Electron net API] (https://electron.atom.io/docs/api/net/)를 사용해 볼 수 있습니다. –
안녕하세요, [email protected] 해결책을 찾았습니까? 나는 똑같은 문제가있다 : '( –
@ MarWenLandoulsi 나는 Jastin의 제안에 따라 Electron net API를 사용했다. – zzm