Hi Murugesan, Have a look at this part of the tutorial: http://www.restlet.org/documentation/2.0/tutorial#part09
Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com 2010/1/4 Murugesan <[email protected]>: > 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 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434702

