POST variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux