Jump to content
Sign in to follow this  
microtronx

Rio RESTserver-Method string with + in string fails

Recommended Posts

Is there a known bug with a Restserver build with RIO for Windows and an Android client calling a normal function like

function tServerMethods.testfunction(vparameter1:string; vparameter2:string):string;
begin
  result:=vparameter1+'/'+vparameter2;
end;

 

if i call this from an android client with

 

clientmodule.servermethodsclient.testfunction('+abcd','def')

the android device shows a error in log: http 404 error ... because the '+abcd' is not encoded. It attaches this to calling url without encoding it so it fails in my case. 



 

Share this post


Link to post

It seems, that the rest-client on latest Rio and Android is broken. It has problems with any special chars in parameters like + or /.

Seems that it does not encode the parameters in POST request where it add the parameters to the URL ...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×