<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Liviu,<div><br></div><div>Thank you for exposing curl! &nbsp;Will you be supporting Basic and Digest HTTP AUTH methods? &nbsp; And is this module just a wrapper around libcurl? Can we set the various curl options that are exported from libcurl?&nbsp;</div><div><br></div><div>In general I don't see what would make this module "RESTful" per se in so much as it looks more like a generic HTTP Client? &nbsp;Might the module's name just be curl module or http_client? &nbsp;Or do you expect to provide other REST-like methods like (PUT and DELETE)?<div><br></div><div><br></div><div>Thanks again for the feature!</div><div><br></div><div>Cheers,</div><div><br></div><div>JPS</div><div><div><br></div><div><br><div>&nbsp;<br><div><div>On Apr 2, 2013, at 5:27 AM, Liviu Chircu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello all,<br>
    <br>
    A new <b>rest_client</b> module is now available in the OpenSIPS
    trunk. It currently offers the possibility of querying an HTTP
    server with GET and POST messages.<br>
    <br>
    The following is a quick example of issuing an HTTP GET in the
    OpenSIPS script in a RESTful manner:<br>
    <br>
    rest_get(<a class="moz-txt-link-rfc2396E" href="http:/">"http://myserver.org/userinfo/$fU"</a>,
    "$avp(body)"));<br>
    xlog("Info of user $fU: $avp(body)\n");<br>
    <br>
    <br>
    Please refer to the module documentation [1] for complete examples,
    along with a more in-depth description of the module functions and
    dependencies.<br>
    <br>
    Testing and feedback are appreciated.<br>
    <br>
    [1]
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a href="http://www.opensips.org/html/docs/modules/devel/rest_client.html">http://www.opensips.org/html/docs/modules/devel/rest_client.html</a><br>
    <br>
    Best regards,<br>
    <pre class="moz-signature" cols="72">-- 
Liviu Chircu
OpenSIPS Dev
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a></pre>
  </div>

<span>&lt;ATT00001.c&gt;</span></blockquote></div><br></div></div></div></div></body></html>