public static int updateWebpageData(final String content, String encoding) {
		HttpClient httpclient = new DefaultHttpClient();
		HttpPut httpput = new HttpPut(CLOUDMINE_ACCOUNT_TEXT_POST);
		httpput.addHeader("Content-Type", CONTENT_TYPE_JSON);
		httpput.addHeader("X-CloudMine-ApiKey", CLOUDMINE_SECRET_API_KEY);
		httpput.addHeader("Authorization", "Basic " + encoding);
		
		ContentProducer cp = new ContentProducer() {
		    public void writeTo(OutputStream outstream) throws IOException {
		        Writer writer = new OutputStreamWriter(outstream, "UTF-8");
		        writer.write(content);
		        writer.flush();
		    }
		};
		HttpEntity entity = new EntityTemplate(cp);
		httpput.setEntity(entity);
		
		try {
			HttpResponse response = httpclient.execute(httpput);
			return response.getStatusLine().getStatusCode();
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return -1;
	}