Thanks in advance...
i m using this code for set http header in http request for authenticate url..
but i think some what is mising thats why i could not get response...
response still comes like "authoriazation required"...
httpParameters = new BasicHttpParams(); String auth = android.util.Base64.encodeToString( ("[email protected]" + ":" + "test2323" + ":" + "zitec" + ":" + "7716099f468cc71670b68cf4b3ba545c5760baa7") .getBytes("UTF-8"), android.util.Base64.NO_WRAP); HttpConnectionParams.setSoTimeout(httpParameters, 0); client = new DefaultHttpClient(httpParameters); String getURL = "URL here"; get = new HttpGet(getURL); get.addHeader("Authorization", "Basic "+ auth); // get.addHeader("X-ZFWS-Accept", "text/json"); HttpResponse responseGet = client.execute(get); HttpEntity resEntityGet = responseGet.getEntity(); if (resEntityGet != null) { //do something with the response //Toast.makeText(Login.this.getApplicationContext(),EntityUtils.toString(resEntityGet), Toast.LENGTH_SHORT).show(); String s = EntityUtils.toString(resEntityGet); tv1.setText(s); } }catch(Exception e){ } plssss help me as soon as possible