If you're passing the JSON object as part of the URL it must be URL encoded.
Dave On Sat, Nov 21, 2009 at 7:51 PM, Steven Headley <[email protected]> wrote: > I am trying to pass a JSON object in a restlet client get request as follows: > > final Client client = new Client(Protocol.HTTP); > Log.info( "json = "+json); > client.get("http://localhost:8080/greet"+"/"+json, new Callback() { > �...@override > public void > onEvent(Request request, Response response) { > > This get request gives me the following error: > > 2009-11-21 22:49:08,921 [FATAL] Uncaught Exception: > java.lang.IllegalArgumentException: > Invalid character detected in URI reference at index '28': "{" > > any help would be appreciated. > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2422957 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423232

