F fanfalveto Active Member Licensed User Longtime User Apr 16, 2013 #1 i try that: B4X: ExecuteRemoteQuery("http://xxx.xxx.xxx/xxx/xxx.php?tipo=18&nombre="&nom, 1) this runs ok if nom="perico" but if nom="perico periquin" makes this error B4X: java.lang.IllegalArgumentException: Illegal character in query at index 86: http://xxx.xxx.xxx/xxx/xxx.php?tipo=18&nombre=perico periquin the problem is with blank spaces. Any idea? Thanks
i try that: B4X: ExecuteRemoteQuery("http://xxx.xxx.xxx/xxx/xxx.php?tipo=18&nombre="&nom, 1) this runs ok if nom="perico" but if nom="perico periquin" makes this error B4X: java.lang.IllegalArgumentException: Illegal character in query at index 86: http://xxx.xxx.xxx/xxx/xxx.php?tipo=18&nombre=perico periquin the problem is with blank spaces. Any idea? Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2013 #2 The MySQL example sends the query in the message payload (POST data) to avoid encoding issues. I recommend you to send any data this way. If you only need to deal with spaces then you can use %20 instead of spaces. Upvote 0
The MySQL example sends the query in the message payload (POST data) to avoid encoding issues. I recommend you to send any data this way. If you only need to deal with spaces then you can use %20 instead of spaces.
F fanfalveto Active Member Licensed User Longtime User Apr 16, 2013 #3 Thank you. Works fine with %20 Upvote 0