<p>
别的手机都可以,唯独华为的手机不行...
</p>
<p>
</p>
<p>
throws MalformedURLException, IOException, ProtocolException {<br />
URL url = new URL(path);<br />
try {<br />
HttpURLConnection cn = (HttpURLConnection) url.openConnection();<br />
cn.setConnectTimeout(5 * 1000);<br />
cn.setRequestMethod("GET");<br />
// System.out.println("stream=======" + cn.getInputStream());<br />
InputStreamReader in = new InputStreamReader(cn.getInputStream());<br />
// System.out.println("in======" + in);
</p> |