@@ -0,0 +1,1598 @@
+package com.weather.yogurt.lifequery.util;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.URL;%0A%0A/**%0A * Created by Yogurt on 16/7/7.%0A */%0Apublic class HttpUtil %7B%0A    public static void sendHttpRequest(final String address, final HttpCallbackListener listener)%7B%0A        new Thread(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                HttpURLConnection connection=null;%0A                try %7B%0A                    URL url=new URL(address);%0A                    connection= (HttpURLConnection) url.openConnection();%0A                    connection.setRequestMethod(%22GET%22);%0A                    connection.setConnectTimeout(8000);%0A                    connection.setReadTimeout(8000);%0A                    connection.setRequestProperty(%22apikey%22,%22%22);%0A                    InputStream is=connection.getInputStream();%0A                    BufferedReader reader=new BufferedReader(new InputStreamReader(is,%22UTF-8%22));%0A                    String line=null;%0A                    final StringBuffer response=new StringBuffer();%0A                    while ((line=reader.readLine())!=null)%7B%0A                        response.append(line);%0A                    %7D%0A                    if (listener!=null)%7B%0A                        listener.onFinish(response.toString());%0A                    %7D%0A                %7Dcatch (Exception e)%7B%0A                    if (listener!=null)%7B%0A                        listener.onError(e);%0A                    %7D%0A                %7D%0A            %7D%0A        %7D).start();%0A    %7D%0A%7D%0A

add httputil