Hi,
I am new to Restlet and restful webservices. I want to pass a authentication
details for Restful webservices into request and invoke the Restful
webservices.
import java.io.IOException;
import org.restlet.Client;
import org.restlet.data.Protocol;
public class SimpleClient {
public static void main(String [] args) throws IOException {
String uri =
"http://localhost/cs/api/forums.ashx/forums/5/threads/3/posts/3" ;
Client client = new Client(Protocol.HTTP);
client.get(uri).getEntity().write(System.out);
}
}
How to pass username and password for RESTful webservices api call?
Thanks in advance.
Regards,
Murugesan
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434584