<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"> Hello Jamuel,<br>
      <br>
      <blockquote
        cite="mid:40D5CE0C-69BA-4DF4-902D-FAFD3F775F89@hcvoip.com"
        type="cite">Basic and Digest HTTP AUTH methods?<br>
      </blockquote>
      If there is sufficient demand for it, it may go in the 1.10 TODO
      list.<br>
      <br>
      <blockquote
        cite="mid:40D5CE0C-69BA-4DF4-902D-FAFD3F775F89@hcvoip.com"
        type="cite">Is this module just a wrapper around libcurl? Can we
        set the various curl options that are exported from libcurl?<br>
      </blockquote>
      As the module will grow in features, more libcurl options will be
      exposed as module parameters. Currently, the only options you can
      set are timeout-related.<br>
      <br>
      <blockquote
        cite="mid:40D5CE0C-69BA-4DF4-902D-FAFD3F775F89@hcvoip.com"
        type="cite">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?</blockquote>
      I noticed that as well, but simply went with the initial idea for
      the name. We can change it any time!<br>
      <br>
      <br>
      Thank you for the quick feedback!<br>
      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>
      On 04/02/2013 07:51 PM, Jamuel Starkey wrote:<br>
    </div>
    <blockquote
      cite="mid:40D5CE0C-69BA-4DF4-902D-FAFD3F775F89@hcvoip.com"
      type="cite">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 moz-do-not-send="true"
                      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 moz-do-not-send="true"
                      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 moz-do-not-send="true" 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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>