Mike Kaply wrote:
>> On Mon, Jul 8, 2019 at 8:45 AM James Pearson <[email protected]> 
>> wrote:
>> I have an existing search engine XML file that I would like to convert
>> to a Policy entry
>> 
>> The search engine uses the 'POST' method, but I can't work out what the
>> "PostData" setting should be in the policies.json file
>> 
>> The search engine XML has:
>> 
>> <Url type="text/html" method="POST" template="https://some.server/search";>
>>           <Param name="data[Search][value]" value="{searchTerms}"></Param>
>>           <Param name="data[Search][hiddenValue]" value=""></Param>
>>           <Param name="data[Interface][viewMode]" value="list"></Param>
>>           <Param name="data[layout]" value="search"></Param>
>> </Url>
>> 
>> Does anyone know how to translate the above into a suitable "PostData"
>> string for a policies.json file ?
> 
> The params hooked together with & should work:
> 
> data[Search][value]={searchTerms}&data[Search][hiddenValue]=&data[Interface][viewMode]=list&data[layout]=search

It does indeed!

Thanks

James Pearson
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to