public int sendGetRequest(String url) throws IOException,
			OAuthMessageSignerException, OAuthExpectationFailedException,
			OAuthCommunicationException {

		int responseCode = 500;
		try {
			HttpURLConnection uc = getConnection(url);

			responseCode = uc.getResponseCode();

			if (200 == responseCode || 400 == responseCode || 401 == responseCode
					|| 404 == responseCode) {
				BufferedReader rd = new BufferedReader(new InputStreamReader(
						responseCode == 200 ? uc.getInputStream()
								: uc.getErrorStream()));
				StringBuffer sb = new StringBuffer();
				String line;
				while ((line = rd.readLine()) != null) {
					sb.append(line);
				}
				rd.close();
				setResponseBody(sb.toString());
			}
		} catch (MalformedURLException ex) {
			throw new IOException(url + " is not valid");
		} catch (IOException ie) {
			throw new IOException("IO Exception " + ie.getMessage());
		}
		return responseCode;
	}