Nettool,HttpURLConnection连接URL

//1、创建一个URL对象

URL url = new URL(urlPath);

//2.利用HttpURLConection对象从网页中获取数据

HttpURLConnection conn = (HttpURLConnection) url.openConnection();

conn.setRequestMethod("GET");

//3.设置连接超时

conn.setConnectTimeout(TIMEOUT);


http://blog.sina.com.cn/s/blog_81e3586a0101f1bg.html

inputstreamreader的用法:

http://baike.sogou.com/v60723102.html

 

Android 从网络中获取数据时 产生部分数据乱码的解决

http://blog.csdn.net/lmj623565791/article/details/23562939

编码表和字符流的转换

http://blog.csdn.net/u013215241/article/details/17552419

你可能感兴趣的:(httpconnect)