I am new to restlet development, trying to add headers to do a http request, (the server required this headers included in the request) .. I tried the following code, but got "400 bad request, the header is not valid"
String url = "http://xxxxx"; Client c = new Client(Protocol.HTTP); Request request = new Request(Method.GET, url); HashMap attributes = new HashMap(); attributes.put = ("DeviceID", "myDeviceID"); attributes.put = ("Centent-Type", "myCT"); attributes.put = ("User-Agent", "my user agent"); attributes.put = ("ClientID", "myCid"); request.setAttributes(attributes); Response r =c.handle(request); Please help. any sample code would be great help. thanks in advance. KC ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2674655

