java中的URLConnection和HttpURLConnection

1 URL url = new URL(strUrl);
2 URLConnection con = url.openConnection();

 

1 URL url = new URL(strUrl);
2 HttpURLConnection con = (HttpURLConnection)url.openConnection();

 

posted @ 2015-11-25 20:54  Ficow  阅读(1113)  评论(1编辑  收藏  举报