在Java程序里运用Http Proxy和Https Proxy

在Java程序里使用Http Proxy和Https Proxy最土的办法: System.setProperty(http.proxyHost, 127.0.0.1

在Java程序里使用Http Proxy和Https Proxy
最土的办法: 

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");