public String getURL(String sURL) {
    	URL url = null;
		try {
			url = new URL(sURL);
		} catch (MalformedURLException e) {
			return "error 1";
		}
    	InputStream is = null;
		try {
			is = url.openStream();
		} catch (IOException e) {
			return "error 2";
		}
    	int ptr = 0;
    	StringBuffer buffer = new StringBuffer();
    	try {
			while ((ptr = is.read()) != -1) {
			    buffer.append((char)ptr);
			}
		} catch (IOException e) {
			return "error 3";
		}
    	
    	return buffer.toString();
    }