java 程序中添加socks 5代理

在需要使用代理的地方添加如下code:

System.getProperties().put("socksProxySet","true"); 
System.getProperties().put("socksProxyHost","localhost"); 
System.getProperties().put("socksProxyPort","7575");
posted @ 2014-11-13 20:18  dorothychai  阅读(2526)  评论(0编辑  收藏  举报