Im trying to create a httpGet that returns a similar request as :
http://www.myserver.com/do.json?json={"magazine":"-1"}
I can't seem to get the header right though.... I tried :
url = "http://www.myserver.com/do.json";
HttpGet httpGet = new HttpGet(url);
//httpGet.setHeader("Content-type", "application/json");
httpGet.addHeader("magazine", "-1");
HttpResponse response = mHttpClient.execute(httpGet);
HttpEntity entity= response.getEntity();
is = entity.getContent();
Can anyone tell me how to do this properly ?? Thanks!