<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Maybe this can help you..<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a href="http://wiki.freeswitch.org/wiki/Mod_http#Lua_Usage">http://wiki.freeswitch.org/wiki/Mod_http#Lua_Usage</a><br>
    <br>
    ;)<br>
    <br>
    Carlos<br>
    <br>
    Em 23-02-2012 10:31, Sanath Prasanna escreveu:
    <blockquote
cite="mid:CALQZz0zBFM3chf8Oj6AeQV0hdMumaqRjc9jbbmyM6RoOwDdCRg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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 moz-do-not-send="true"
          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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>