This may be a silly question but I have zero knowledge of luasocket in Gideros. Say, I want to send data to mydomain.com, supplying 2 strings, and get the result (i.e. concatenation of them) from mydomain.com. How do do that? Thanks
I think it's easier to do it using UrlLoader class
local loader = UrlLoader.new("<a href="http://mydomain.com/somescript.php?string1=firststring&somestring2=secondstring"" rel="nofollow">http://mydomain.com/somescript.php?string1=firststring&somestring2=secondstring"</a><img class="emoji" src="http://forum.gideros.rocks/resources/emoji/wink.png" title=";)" alt=";)" height="20" />
local function onComplete(event)
--what server returned
print(event.data)
end
loader:addEventListener(Event.COMPLETE, onComplete)
Comments
Thanks @ar2rsawseen.