<div>Hi all,</div><div>I use url to get charging status as follow in lua app module.</div><div><br></div><div>local http = require("socket.http")</div><div>body,c,l,h = http.request{ url = "<a href="http://localhost/charging.php?mobile=868992222">http://localhost/charging.php?mobile=868992222</a>"};</div>
<div>logInfo("charging http_url body:" .. body .. " ");</div><div>logInfo("charging http_url c:" .. c .. " ");<span class="Apple-tab-span" style="white-space:pre">        </span></div><div>
logInfo("charging http_url l:" .. encode(l) .. " ");</div><div>logInfo("charging http_url h:" .. h .. " ");</div><div><br></div><div>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.</div>
<div>Pls help.</div><div>Br,</div><div>Sanath</div>