Review Board 1.7.16

ari: Add application/x-www-form-urlencoded parameter support

Review Request #2986 - Created Nov. 1, 2013 and submitted

David Lee
ARI POST calls only accept parameters via the URL's query string.
While this works, it's atypical for HTTP API's in general, and
specifically frowned upon with RESTful API's.

This patch adds parsing for application/x-www-form-urlencoded request
bodies if they are sent in with the request. Any variables parsed this
way are prepended to the variable list supplied by the query string.
curl -vs --data "channel=1383326738.0&api_key=ari:ari" http://localhost:8088/ari/bridges/e78019f3-9710-43c7-8421-de5cff48e3d3/addChannel

Testsuite test:
Review request changed
Updated (Nov. 8, 2013, 12:20 p.m.)
  • changed from pending to submitted
Committed in revision 402569 runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to