如何配置 Java 客户端的认证, 我尝试创建新的 < code> authenticator 对象 & amp; 称它为默认方法, 但我仍然会收到以下错误 :
java.io.IOException: Authentication failure
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1096)
at UrlProxy.main(UrlProxy.java : 54)
Please let me know if I need to set any other additional properties.
I am opening the connection to my target site using HttpUrlconnection
class.