[Answer]-Sending context data with POST request

1👍

First of all, dont name your function redirect it is already taken. So here i am using django’s redirect:

One way would be to pass variables in url. Here just a pseudo example…

return redirect('https://test.payu.in/_payment?k=%s&h=%s', % ( key, hash)) 

0👍

If you faced such problem there’s slight chance that you had over-complicated your design.

This is a restriction of HTTP that POST data cannot go with redirects.

If you really need to redirect in a POST request try it in client side using JavaScript.

Leave a comment