def main(args: Array[String]) { System.setProperty("http.proxyHost","proxy") System.setProperty("http.proxyPort","8080") Authenticator.setDefault(new Authenticator() { def PasswordAuthentication(user: String, pass: Array[Char]) = { new PasswordAuthentication("username","password".toCharArray()) } }) }
scala sets http proxy
最新推荐文章于 2024-07-11 14:13:01 发布