Javascript 如何将经过身份验证的代理与undici一起使用
你好,所以我尝试使用undici和代理,但它不工作,我厌倦了这个Javascript 如何将经过身份验证的代理与undici一起使用,javascript,node.js,proxy,request,Javascript,Node.js,Proxy,Request,你好,所以我尝试使用undici和代理,但它不工作,我厌倦了这个 const client = new Client({ url: 'www.google.com', proxy: 'http://user:pass@host:port' }) 还有这个 const { HttpsProxyAgent } = require("https-proxy-agent"); const proxy = new HttpsProxyAgent("http://us
const client = new Client({
url: 'www.google.com',
proxy: 'http://user:pass@host:port'
})
还有这个
const { HttpsProxyAgent } = require("https-proxy-agent");
const proxy = new HttpsProxyAgent("http://user:pass@host:port");
time = new Date()
client.request({
path: '/',
method: 'GET',
httpsAgent: proxy
},
但似乎什么都不管用