[android-developers] Re: Basic HTTP authentication

2009-04-30 Thread Wouter
I have tried to do it with the normal HttpClient and now I have done it with the apache commons HttpClient: On Apr 30, 6:25 am, Jon Colverson jjc1...@gmail.com wrote: On Apr 29, 6:06 pm, Wouter wouterg...@gmail.com wrote: I cannot access my page! How can I do this? Can you post your code?

[android-developers] Re: Basic HTTP authentication

2009-04-30 Thread Wouter
On Apr 30, 6:25 am, Jon Colverson jjc1...@gmail.com wrote: On Apr 29, 6:06 pm, Wouter wouterg...@gmail.com wrote: I cannot access my page! How can I do this? Can you post your code? -- Jon I have tried to do it with the normal HttpClient and now I have done it with the apache commons

[android-developers] Re: Basic HTTP authentication

2009-04-30 Thread Mark Murphy
Wouter wrote: On Apr 30, 6:25 am, Jon Colverson jjc1...@gmail.com wrote: On Apr 29, 6:06 pm, Wouter wouterg...@gmail.com wrote: I cannot access my page! How can I do this? Can you post your code? -- Jon I have tried to do it with the normal HttpClient and now I have done it with

[android-developers] Re: Basic HTTP authentication

2009-04-29 Thread Wouter
No this doesn't work.. I have tried to access my page with curl (curl http://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

[android-developers] Re: Basic HTTP authentication

2009-04-29 Thread Wouter
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-developers] Re: Basic HTTP authentication

2009-04-29 Thread Jon Colverson
On Apr 29, 6:06 pm, Wouter wouterg...@gmail.com wrote: I cannot access my page! How can I do this? Can you post your code? -- Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Basic HTTP authentication

2009-04-28 Thread Jon Colverson
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();

[android-developers] Re: Basic HTTP authentication with M5 SDK - What is the right way to do it?

2008-07-21 Thread Mark Murphy
code_android_festival_way wrote: Hello guys! I'm trying to achieve a basic HTTP authentication. After hours of try and error I'd like to ask you what is the right way at the moment to achieve that. Here is my source code at the moment: http://rafb.net/p/ii4mMi16.html This approach

[android-developers] Re: Basic HTTP authentication with M5 SDK - What is the right way to do it?

2008-07-20 Thread code_android_festival_way
Thank you for your response. You are right with line 42 it is wrong. But that's not the main error for me. In line 43 I get The method setCredentials(AuthScope, Credentials) in the type HttpState is not applicable for the arguments (AuthScope, Credentials) in Eclipse. And thats the reason why

[android-developers] Re: Basic HTTP authentication with M5 SDK - What is the right way to do it?

2008-07-20 Thread code_android_festival_way
So I tried to work close to the API right now. Here is my result: http://nopaste.info/f1b5b7ee24.html The only thing I don't understand is how to execute the GET method with my client. Could you help me out if you understand how to achieve the execution of the GET method? Would be really nice.

[android-developers] Re: Basic HTTP authentication with M5 SDK - What is the right way to do it?

2008-07-20 Thread Mark Murphy
code_android_festival_way wrote: So I tried to work close to the API right now. Here is my result: http://nopaste.info/f1b5b7ee24.html The only thing I don't understand is how to execute the GET method with my client. Could you help me out if you understand how to achieve the execution

[android-developers] Re: Basic HTTP authentication with M5 SDK - What is the right way to do it?

2008-07-20 Thread code_android_festival_way
Thanks for your response. I've made it now using the API to do a basic authentication with the classes offered in the API. Here it is: http://rafb.net/p/ho7n5a34.html It works fine for me now. The other clients I found were based on the outdated M3 SDK and on original apache libraries

[android-developers] Re: Basic HTTP authentication with M5 SDK - What is the right way to do it?

2008-07-20 Thread code_android_festival_way
After having recognized how to do the basic HTTP authentication I get an error with the HTTPS authentication. I know that there might be some problems with the HTTPS connection of the HttpClient after reading through the groups here. Could someone tell me what I have to change in here?