Hey guys…
I need to do something and can’t figure out how to resolv my issue!
I have this test code :
[code]local http = require(“socket.http”)
– 5 Second timeout
http.TIMEOUT = 5
– The return parameters are in a different order from luup.inet.wget(…)
result, status = http.request(“http://192.168.168.169/message.php?message=THIS IS A TEST”, “”)[/code]
The problem is, I only receive THIS on the other side… looks like the http.request stop after any space.
If I use my browser with the URL
http://192.168.168.169/message.php?message=THIS IS A TEST
It’s works fine, so I know my problem came from LUA!
I know it works if I use %20 instead of space… but I want to avoid using %20 in LUA, Or any LUA function to find/replace so I can replace space with %20 ?
Any idea…
thanks