]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ari: Add application/x-www-form-urlencoded parameter support
authorDavid M. Lee <dlee@digium.com>
Fri, 8 Nov 2013 17:28:40 +0000 (17:28 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 8 Nov 2013 17:28:40 +0000 (17:28 +0000)
commita274df3a2190ddbd6536955dff8500f059ff8f51
tree6b2920cc182b3b86e2897b5164bd8bd5f3be3afa
parent7194a6e59c327117c5c18e75859094b0325b7e89
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/

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