ari: Add application/x-www-form-urlencoded parameter support
authorDavid M. Lee <dlee@digium.com>
Fri, 8 Nov 2013 17:29:53 +0000 (17:29 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 8 Nov 2013 17:29:53 +0000 (17:29 +0000)
commit97a8debd90e4d31f15803dc26e8884bf34d7650e
tree0fd89838b26a72cfb96494ef1091fe1a5642b98d
parent2564ed26f79d374fc92f5cf08ec6b5f32920be99
ari: Add application/x-www-form-urlencoded parameter support

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.

(closes issue ASTERISK-22743)
Review: https://reviewboard.asterisk.org/r/2986/
........

Merged revisions 402555 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/http.c
main/manager.c
res/res_ari.c