I must admit I am a total beginner, but nevertheless I find restlet quite interesting and already spent some time trying to get this going. So here it is, very simple I hope:
- I hae an android project and want to use the Restlet ClientResource to access the gowalla API. I need to provide basic auth for each request sent to the server and also some other request headers - there are Accept and other standard headers and some custom headers I need to set. Simple question: how? I am really lost with all th eoption. So if someoen could just simple show me how to do this curl request with restlet I am very happy: curl -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'X-Gowalla-API-Key: somekey' -u 'user:pass' http://api.gowalla.com/spots?lat=48.15114&lng=11.547882&radius=50 If you cannot provide a full example, here more specific questiosn: AFter I created a clientResource, how do I set the Basic Auth parameters (username and password?) ClientResource resource = new ClientResource("http://api.gowalla.com/spots"); ... now set user and pass Also: how do I add Header request parameters? How would I add normal post/get parameters? Thanx! Sven ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2742240

