I cannot access my page! How can I do this?
On Apr 29, 10:43 am, Wouter <wouterg...@gmail.com> wrote:
> No this doesn't work..
>
> I have tried to access my page with curl (curlhttp://192.168.1.66:3000/me
> --basic -u wouter:test) and I got a successfull xml response!
>
> So how can I do this in Android? The code you give didn't work..
>
> On Apr 29, 1:01 am, Jon Colverson <jjc1...@gmail.com> wrote:
>
> > On Apr 28, 11:26 pm, Wouter <wouterg...@gmail.com> wrote:
>
> > > How can i do the authentication? i have tried with a authscope and
> > > BasicCredentialsProvider but i think i am not doing it good!
>
> > I think this is all you need:
>
> > DefaultHttpClient client = new DefaultHttpClient();
> > client.getCredentialsProvider().setCredentials(
> > new AuthScope(HOST, PORT),
> > new UsernamePasswordCredentials(username, password));
>
> > --
> > Jon
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---