摘要: 一般是发送请求到某个应用服务器。此时需要用到HttpURLConnection 先取得HttpURLConnection urlConn = new URL("http://www.google.com").openConnection(); 设置标志 urlConn.setDoOutput(true); urlConn.setDoInput(true);//post的情况下需要设置DoOutput为true urlConn.setRequestMethod("POST"); urlConn.setUseCache(false);//设置是否用缓存 ur 阅读全文
posted @ 2013-08-27 22:00 Sekeys 阅读(454) 评论(0) 推荐(0) 编辑