That is the correct behavior for how to URL decode a + in a URL. See http://en.wikipedia.org/wiki/Percent-encoding for a detailed description. You would have to URL encode the + character to %2B for this to work as you desire it to.
-----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Allen Sent: Thursday, January 03, 2008 4:08 PM To: [email protected] Subject: Problem parsing a query with + sign in it. I'm trying to use restlet to parse something an URL like this: http://localhost/test?time=2008-01-03T08:30:00+05:30 However, when use the request object to parse the URL: Request request = new Request(); request.setResourceRef("http://localhost/test?time=2008-01-03T08:30:00+0 5:30"); System.out.println( request.getResourceRef().getQueryAsForm().getFirstValue("time",true)); I get: 2008-01-03T08:30:00 05:30 Notice that the + sign has been replaced by a space and that is causing me a lot of trouble. Can anyone tell me if it is by design and I should work around it by replacing the space with + sign again, or is it a defect that should be fixed? Thanks!

