public String getContent(String urlString) throws MalformedURLException {
        URL url = createURL(urlString);
        URLConnection connection = createConnection(url);

        if(connection == null) return "";

        String content = "";

        BufferedReader reader;

        try {
            reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
        } catch (IOException e) {
            e.printStackTrace();
            return "";
        }

        String line;
        try {
            while( (line = reader.readLine()) != null ){
                content = content + line + "\n";
            }
        } catch (IOException e) {
            e.printStackTrace();
            return "";
        } finally {
            try {
                reader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        return content;
    }