public static String fileGetContents(String strUrl) throws IOException {
		URL url1 = null;
		BufferedReader reader = null;
		HttpURLConnection connection = null;
		InputStreamReader ins = null ;
		try {
			url1 = new URL(strUrl);
			connection = (HttpURLConnection) url1.openConnection();
			connection.setConnectTimeout(2*1000);
			connection.setReadTimeout(2*1000);
			connection.connect();
			ins =new InputStreamReader(connection.getInputStream());
			reader = new BufferedReader(ins);
			StringBuffer sb = new StringBuffer();
			String line;
			
			while ((line = reader.readLine()) != null) {
				sb.append(line+ "\n");
			}
			return sb.toString();
		} 
		catch (IOException e) {
			System.out.println("Error getURL:" + strUrl);
		}
		finally
		{
			if(ins != null)
			{
				try {
					ins.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			if(reader != null)
			{
				try {
					reader.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			if(connection != null)
			{
				connection.disconnect();
			}
		}
		return null;
	}