Hi, I also add that this sounds quite odd to send an object in the URI. If you intend to use a GET method in order to not get the state of a resource, you're surely missing something and going on a wrong way.
Best regards, Thierry Boileau > 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 <shead...@swbell.net> 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 > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423258