It's hard to tell since we don't know what URL you are talking about. You
should get in touch with the programmer of that web page you're trying to
access and ask him/her about that issue. I suspect it has to do with the
user agent string. Maybe that web service only accepts a list of known
strings. Maybe that URL is in fact password protected and the browser
you're using automatically logs in or has a valid session cookie.
On Friday, December 7, 2012 6:36:02 AM UTC-6, Diego Nunes wrote:
>
> 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]<javascript:>
> > 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