how to redirect to an external URL using POST in grails

后端 未结 2 2009
無奈伤痛
無奈伤痛 2021-01-22 02:45

I am integrating my website with payment gateway...I want to take some parameters from the user and add some parameters from my side , and then send data to the payment gateway.

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-22 03:37

    You can't redirect POST request, all redirections are new GET request, it's from specification.

    Btw, you can add this parameters on client side, before sending to payment gateway. By using ajax for example. Or by making an extra page, with a form, that will be autosubmitted to payment gateway

提交回复
热议问题