Layer7 API Management

Expand all | Collapse all

We have a requirement to sent curly braces in the query string { }- the default HTTP Route assertion does not handle this. Is there any custom solution for this.

  • 1.  We have a requirement to sent curly braces in the query string { }- the default HTTP Route assertion does not handle this. Is there any custom solution for this.

    Posted Dec 09, 2016 10:38 AM

    We have a requirement to sent curly braces in the query string { }- the default HTTP Route assertion does not handle this. Is there any custom solution for this.



  • 2.  Re: We have a requirement to sent curly braces in the query string { }- the default HTTP Route assertion does not handle this. Is there any custom solution for this.
    Best Answer

    Broadcom Employee
    Posted Dec 09, 2016 11:08 AM

    Hi Venky-Rams,

     

    You will need to URL Encode this using the Encode/Decode assertion.

     

     

    Regards,

    Joe



  • 3.  Re: We have a requirement to sent curly braces in the query string { }- the default HTTP Route assertion does not handle this. Is there any custom solution for this.

    Posted Dec 13, 2016 03:40 AM

    Indeed, you have to URL encode it,

    it is best practices to simply URL encode anything that you send as a query element, to avoid breaking of the URL due to a mismatch, such as a '&' or a '=' that could break the elements

     

    Thanks

     

    Maurizio