[asterisk-app-dev] POST variables
Paul Belanger
paul.belanger at polybeacon.com
Fri Oct 18 17:38:02 CDT 2013
On 13-10-18 06:07 PM, Corey Edwards wrote:
> I'm having issues getting ARI to recognize my parameters. I think it
> boils down to how they are sent in HTTP.
>
> Sending parameters in the URL works, as such:
>
> POST /ari/bridges/e0fba6be-24c7-419d-8c8b-3d45914efb78/addChannel?channel=1382132159.0
> HTTP/1.1.
>
> But putting them in the request body does not:
>
> POST /ari/bridges/e0fba6be-24c7-419d-8c8b-3d45914efb78/addChannel HTTP/1.1.
> Content-Type: application/x-www-form-urlencoded.
> .
> channel=1382132159.0
>
> Am I correct, or did I make a mistake somewhere? Is that by design?
>
Ran into this issue like you, right now it is by design. See
ASTERISK-22685[1].
For now, you need to encode your variable in the url:
POST
/ari/bridges/e0fba6be-24c7-419d-8c8b-3d45914efb78/addChannel?channel=1382132159.0
[1] https://issues.asterisk.org/jira/browse/ASTERISK-22685
--
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter:
https://twitter.com/pabelanger
More information about the asterisk-app-dev
mailing list