https://www.showapi.com/user/my
public static void main(String path[]) throws Exception {
URL u=new URL("http://route.showapi.com/9-2?showapi_appid=28325&area=上海&needMoreDay=0&needIndex=0&needHourData=0&need3HourForcast=0&needAlarm=0&showapi_sign=bbf2d64751694b918fe5641f9a27be2d");InputStream in=u.openStream();
ByteArrayOutputStream out=new ByteArrayOutputStream();
try {
byte buf[]=new byte[1024];
int read = 0;
while ((read = in.read(buf)) > 0) {
out.write(buf, 0, read);
}
} finally {
if (in != null) {
in.close();
}
}
byte b[]=out.toByteArray( );
System.out.println(new String(b,"utf-8"));
}