package firstSteps; Hi,
I can access http://test.com/cs/api/forums.ashx/forums/5/threads/3/posts/3 RESTful URL trho IE and got XML response. But when I am tried to access same thro below java code using Resltlet version 1.x and not 2.0, I am getting below error while running client program.. Error Message: -------------- <HTML> <HEAD><TITLE>502 Bad Gateway</TITLE></HEAD> <BODY> <H1>Bad Gateway</H1> <H4> The following error occurred:<P> [code=DNS_HOST_NOT_FOUND] The host name was not found during the DNS lookup. Contact your system administrator if the oblem is not found by retrying the URL. </H4> <HR> Please contact the administrator. </BODY> </HTML> Client Program: ---------------- import java.io.IOException; import org.restlet.Client; import org.restlet.data.ChallengeResponse; import org.restlet.data.ChallengeScheme; import org.restlet.data.Protocol; import org.restlet.resource.ClientResource; public class ReferenceClient { public static void main(String [] args) throws IOException { String uri = "http://test.com/cs/api/forums.ashx/forums/5/threads/3/posts/3" ; ClientResource resource = new ClientResource(uri); ChallengeScheme scheme = ChallengeScheme.HTTP_BASIC; ChallengeResponse authentication = new ChallengeResponse(scheme, "ENT\\x0087948", "YYYfgs");//DOMAIN\\USERNAME, PASSWORD resource.setChallengeResponse(authentication); resource.get().write(System.out); } } Please help me out this. Thanks in advance. Regards, Murugesan. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434836

