Code I'm using:
*HttpClient httpClient = new DefaultHttpClient();*
*httpClient.getParams().setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET,
"iso-8859-1");*
* *
*HttpContext localContext = new BasicHttpContext();*
* *
*HttpGet httpGet = new HttpGet("URL");*
*httpGet.setHeader("Accept-Charset", "iso-8859-1, unicode-1-1;q=0.8");*
*
*
*HttpResponse response = httpClient.execute(httpGet, localContext);*
*HttpEntity entity = response.getEntity();*
Thank you.
On Fri, Dec 7, 2012 at 10:30 AM, Diego N. <[email protected]>wrote:
> Hello
>
> I have an android application that makes a GET request to a web app, the
> return of this request with the following message:
>
> "authentication_failed: Your credentials could not be authenticated:
> "Credentials are missing.". You will not be permitted access until your
> credentials can be verified."
>
> If I access the same URL through the brower tablet JSON is returned
> successfully.
>
> Does anyone know what can be?
>
> Thank you.
>
> att,
>
> --
> Diêgo Nunes Assunção
> "Give Peace a Chance"
>
--
http://about.me/dnassuncao
Diêgo Nunes Assunção
"Give Peace a Chance"
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en