when I use HttpsProxyAgent with got, and pass a proxy with some stuff like ${username};${parms}@${password} to auth a proxy.
it would get 407 errors every time.
import {HttpsProxyAgent} from "hpagent";
import got from "got";
const proxyStatus = (await got("https://lumtest.com/myip.json", {
resolveBodyOnly: true,
agent: {
https: new HttpsProxyAgent({
proxy: `http://username;refreshSeconds=180:password@domain:port`,
}),
},
})) as unknown as {
ip: string;
country: string;
};
the same proxy scheme is working fine on 'http-agent' or on a python request module.
when I use HttpsProxyAgent with got, and pass a proxy with some stuff like
${username};${parms}@${password}
to auth a proxy. it would get 407 errors every time.the same proxy scheme is working fine on 'http-agent' or on a python request module.