[asterisk-app-dev] allowMultiple

Paul Belanger paul.belanger at polybeacon.com
Mon Oct 21 16:31:43 CDT 2013


On Mon, Oct 21, 2013 at 5:24 PM, Daniel Jenkins <dan.jenkins88 at gmail.com> wrote:
>> On Oct 21, 2013, at 22:22, Lenz Emilitri <lenz.loway at gmail.com> wrote:
>>
>> Hi all,
>> writing the HTTP client - how is the query string built when a
>> parameter sets allowMultiple=true? do you simply repeat the parameter
>> multiple times, like in /my/url?parm=a&parm=b to set it to "a" and
>> "b"?
>> TIA
>> l.
>>
> I doubt that would work (and shouldn't) as the last "param" would
> override the first,
>
> In pure http you would make it into an array - param[]=a&param[]=b
>

url?param=a,b

or course, urlencode the comma

-- 
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