Like what header("Location http://url.to/");
does, I want to make a redirection but with POST method. I know that cURL
can handle sending data by POST/GET method but I'm not sure about redirection.
Helps are appreciated.
Like what header("Location http://url.to/");
does, I want to make a redirection but with POST method. I know that cURL
can handle sending data by POST/GET method but I'm not sure about redirection.
Helps are appreciated.
header("HTTP/1.1 307 Temporary Redirect");
header("Location: http://www.***.co.uk/site/index.php");
That will re-direct POST data, see my previous answer here: https://security.stackexchange.com/questions/39564/how-do-i-capture-post-data-then-forward-user-to-another-page/39568#39568