Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Surjendu
Thanks.. 1. I am using a Apache Http Client library as Restlet does not support multipart-form. As far as retrieving userid and password is concerned, thats not a problem because I have written custom Guard class which does exactly the same. When I use a challengeScheme(Restlet Client) in Requ

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Thierry Boileau
Surjendu, I send you a simple Client and Server class both coded with the Restlet framework. The client sends a file to the server providing a login/password. The server prints login, password and file content. I hope it will help you. regards, Thierry Boileau This is my client call using A

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Rhett Sutphin
On Apr 30, 2008, at 2:18 PM, Surjendu wrote: I tried that..But i still get the credentials as null..Is there any other way to figure out whether the credentials are reaching the server. I'm a fan of wireshark for isolating client/server interaction problems: http://www.wireshark.org/ You

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Surjendu
I tried that..But i still get the credentials as null..Is there any other way to figure out whether the credentials are reaching the server.

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Rob Heittman
First, are you certain the credentials are arriving at the server? Try: client.getState().setCredentials( new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM), defaultcreds); The client settings ca