在Java程序里使用Http Proxy和Https Proxy Leave a Comment / Java / March 24, 2011 March 24, 2011 最土的办法: System.setProperty("http.proxyHost", "127.0.0.1"); System.setProperty("http.proxyPort", "8580"); System.setProperty("https.proxyHost", "127.0.0.1"); System.setProperty("https.proxyPort", "8580");