I want to get some data from the server according to my auth-token.
According to the REST principals i need ti use GET method.
but i don't want to send the user auth-token in the request url.
How can i add a json to the httpGet instance?
// create HttpClient
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpGet = new HttpGet(url);
// 5. set json to StringEntity
StringEntity se = new StringEntity(json);
// 6. set httpPost Entity
httpGet.setEntity(se);
httpGet.setEntity
throws an error
The method setEntity(StringEntity) is undefined for the type HttpGet