日期:2014-05-17 浏览次数:20745 次
String url1 = "C:/Documents and Settings/Administrator/Local Settings/Temporary Internet Files/GetCode.asp";
String url2="D:/Temporary Internet Files/11.jpg";
try {
copyFile(new File(url1), new File(url2));//这个就是io读写函数
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}*/
}
url = new URL("http://www.71tv.net.cn/include/GetCode.asp");
HttpURLConnection urlConnection = (HttpURLConnection)url.openConnection();
//GET Request Define:
urlConnection.setRequestMethod("GET");
// urlConnection.
urlConnection.connect();