hutool http proxy 設置以下代碼有用,jodd http不行
後來翻閱多方材料後發現以一下代碼方式可以實現:
System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
Authenticator.setDefault(
new Authenticator() {
@Override
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(authUser, authPassword.toCharArray());
}
}
);