The + sign signifies a space in a URL encoded query string. If you
really mean a plus sign, use %2B.

Justin

On Jan 3, 2008 1:08 PM, Allen <[EMAIL PROTECTED]> wrote:
> 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+05: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!
>

Reply via email to