Code example for HttpPut

Methods: addHeader, setEntity

0
		return Put(uri,postParams);
	} 
	 
	private static HttpResponse Put(String uri, Bundle postParams) throws JSONException, ClientProtocolException, IOException
	{ 
		HttpPut request=new HttpPut(uri);
		request.addHeader("Content-Type", "application/json; charset=utf-8");
		 
		HttpEntity bodyEntity = new StringEntity(Util.JsonParmsString(postParams), "utf8");
		request.setEntity(bodyEntity);
		return new DefaultHttpClient().execute(request);		
	} 
	 
	public static HttpResponse PostRequest(String uri, Bundle getParams, Bundle postParams) throws JSONException, ClientProtocolException, IOException
	{ 
		uri = uri + "?" + Util.GetParamsString(getParams);
		return Post(uri, postParams);	
	} 
	 
	public static HttpResponse AccessTokenPostRequest(String uri, Bundle getParams, Bundle postParams) throws JSONException, ClientProtocolException, IOException, ExampleException
	{