Hello Jamuel,

Basic and Digest HTTP AUTH methods?
If there is sufficient demand for it, it may go in the 1.10 TODO list.

Is this module just a wrapper around libcurl? Can we set the various curl options that are exported from libcurl?
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.

What would make this module "RESTful" per se in so much as it looks more like a generic HTTP Client? Might the module's name just be curl module or http_client?
I noticed that as well, but simply went with the initial idea for the name. We can change it any time!


Thank you for the quick feedback!
Regards,

Liviu Chircu
OpenSIPS dev
http://www.opensips-solutions.com

On 04/02/2013 07:51 PM, Jamuel Starkey wrote:
Hi Liviu,

Thank you for exposing curl! Will you be supporting Basic and Digest HTTP AUTH methods? And is this module just a wrapper around libcurl? Can we set the various curl options that are exported from libcurl?

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? Might the module's name just be curl module or http_client? Or do you expect to provide other REST-like methods like (PUT and DELETE)?


Thanks again for the feature!

Cheers,

JPS



On Apr 2, 2013, at 5:27 AM, Liviu Chircu wrote:

Hello all,

A new *rest_client* module is now available in the OpenSIPS trunk. It currently offers the possibility of querying an HTTP server with GET and POST messages.

The following is a quick example of issuing an HTTP GET in the OpenSIPS script in a RESTful manner:

rest_get("http://myserver.org/userinfo/$fU";, "$avp(body)"));
xlog("Info of user $fU: $avp(body)\n");


Please refer to the module documentation [1] for complete examples, along with a more in-depth description of the module functions and dependencies.

Testing and feedback are appreciated.

[1] http://www.opensips.org/html/docs/modules/devel/rest_client.html

Best regards,
--
Liviu Chircu
OpenSIPS Dev
http://www.opensips-solutions.com
<ATT00001.c>



_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to