这么获取天气为什么获取不到数据

这样获取天气为什么获取不到数据。

public InputStream getInputStreamFromUrl(String urlStr)
throws MalformedURLException, IOException {
url = new URL(urlStr);
HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();
urlConn.setConnectTimeout(15000);  
urlConn.setRequestMethod("GET");
InputStream input = urlConn.getInputStream();
return input;
}



public String download(String urlStr) {
StringBuffer sb = new StringBuffer();
String line = null;
BufferedReader buffer = null;
InputStream input = null;

try {
input = this.getInputStreamFromUrl(urlStr);
buffer = new BufferedReader(new InputStreamReader(input));
while ((line = buffer.readLine()) != null) {
sb.append(line);
}
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (buffer != null) {
buffer.close();
buffer = null;
}
if (input != null) {
input.close();
input = null;
}
} catch (IOException e) {
e.printStackTrace();
}
}

return sb.toString();
}


download("http://m.weather.com.cn/data/101190101.html");

前几天都没有问题,现在就是获取不到数据

------解决方案--------------------
HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();
这个地方 urlConn.connect(); 这个不加上 也能正常连接网络?