[OpenSIPS-Users] [NEW] rest_client module
Liviu Chircu
liviu at opensips.org
Tue Apr 2 14:27:45 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130402/84b0d181/attachment.htm>
More information about the Users
mailing list