I’m posting as a GET to a webserver. searchText is the result of input from the roKeyboardScreen. If I have spaces or reserved characters in searchText, it will print to the debug console, but the http GET silently fails.
I’m posting as a GET to a webserver. searchText is the result of input from the roKeyboardScreen. If I have spaces or reserved characters in searchText, it will print to the debug console, but the http GET silently fails.
Is there anything I can do in Brightscript to quote searchText to be passed?
Actaully, the webserver won’t, it just looks like it does. Browsers silently escape or urlencode (I always get the terms mixed up) anything in the address bar, so what your webserver actually sees is:
If you can check the logs of the webserver, you should be able to confirm or refute this.
If it is the escaping that’s the problem, you want is to escape the parameter value, but not the parameter name or URL. Look at the Escape and Unescape methods for the roURLTransfer object.