RE: Client (HTTP) and query encoding of space characters

2009-10-19 Thread Jerome Louvel
Hi Matt,

The Reference class automatically encodes invalid URI characters (such as
the space character). The problem is that this encoding is based on the
URLEncoder JDK class which works for Web forms but not generic URIs...

Fix Reference#encode and decode methods
http://restlet.tigris.org/issues/show_bug.cgi?id=920

This should be fixed for 2.0 RC. Contributions welcome :)

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-Message d'origine-
De : Matt Stromske [mailto:matt.strom...@singlewire.com] 
Envoyé : jeudi 1 octobre 2009 22:16
À : discuss@restlet.tigris.org
Objet : Client (HTTP) and query encoding of space characters

Hello,  I'm using a Client with the HTTP protocol.  I'm sending a GET with a
query and I noticed that space characters are encoded to + (plus) signs.  I
would like them encoded to %20 instead.  Is there a way to do this?

Thanks,
Matt

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=24026
75

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2408892


Client (HTTP) and query encoding of space characters

2009-10-01 Thread Matt Stromske
Hello,  I'm using a Client with the HTTP protocol.  I'm sending a GET with a 
query and I noticed that space characters are encoded to + (plus) signs.  I 
would like them encoded to %20 instead.  Is there a way to do this?

Thanks,
Matt

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2402675