23 Feb
2012
23 Feb
'12
12:31 p.m.
Hi all, I use url to get charging status as follow in lua app module. local http = require("socket.http") body,c,l,h = http.request{ url = " http://localhost/charging.php?mobile=868992222"}; logInfo("charging http_url body:" .. body .. " "); logInfo("charging http_url c:" .. c .. " "); logInfo("charging http_url l:" .. encode(l) .. " "); logInfo("charging http_url h:" .. h .. " "); URL will be return 1 or 0 as response. How to get that value in lua program. I print body,c,l,h values. But return value is not there. Pls help. Br, Sanath