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

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.