Layer7 API Management

  • 1.  How to build and post a form

    Posted Mar 05, 2019 05:32 PM

    Hello

     

    Can I have some guidance on how to build a form like the below and post it using route via https assertion?

     

    <form>
    <input name="name1 value="value1" />
    <input name="name2" value="value2" />
    </form>

     

     

    Thanks



  • 2.  Re: How to build and post a form
    Best Answer

    Broadcom Employee
    Posted Mar 06, 2019 08:17 AM

    Hi Patrick,

     

    You can create a variable of type message with the HTTP form parameters like this:

     

     

    Then in the route assertion select this variable as the request source:

     

     

    Regards,

    Joe



  • 3.  Re: How to build and post a form

    Posted Mar 06, 2019 02:23 PM

    Thanks Joe, works perfectly fine... Do have a residual issue though... one of the parameters is actually a base64 encoded saml response and for some reason seems like the route via https assertion is replacing all "+" in the bases64 string with space, causing decoding on the other side to fail. Any idea how to fix that?



  • 4.  Re: How to build and post a form

    Broadcom Employee
    Posted Mar 06, 2019 03:14 PM

    Hi Patrick,

     

    You should URL encode the SAML before posting it.

    Base64 uses some characters that can alter the meaning of the input

     



  • 5.  Re: How to build and post a form

    Posted Mar 06, 2019 05:03 PM

    Yes it is working, thanks for all your help

     

    patrick