Como definir um cabeçalho Http para recuperar um objeto json
Estou tentando criar um httpGet que retorna uma solicitação semelhante a:
http: //www.myserver.com/do.json? json = {"magazine": "- 1"}
Parece que não consigo acertar o cabeçalho .... Tentei:
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();
Alguém pode me dizer como fazer isso corretamente? Obrigado