java URL 获取PHP JSON 数据
import java.io.Reader;import java.net.URL;URL url = new URL("http://127.0.0.6/?c=json");HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();String json = "";int c;while((c = reader.read()) != -1){. json += (char)c;System.out.println(json);e.printStackTrace();e.printStackTrace();
下载地址
用户评论