Requesthttp and problems with the spaces

juanjo3691

Member
Licensed User
Longtime User
Hello, friends. When I execute this sentence:

req.InitializePost2 ("http://www.abcde.es/pages/php/file.php?host=localhost&db=database&user=usuario&pass=password&stamp=" & SelloTemporal & "&iduser=" & Main.UsuarioActual.ID & "&idspace=" & etCodigo.text, CadenaSQL.GetBytes("UTF8"))

I have the problem: IllegalArgumenException: illegal character in query at index 123:...
I have tried several times and the problems is the white space. in the edittext it is impossible to pass a value like this 'word word' with the space. I need to save the space in the database. Any idea?
Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…