Note : This is NOT a duplicate of Is it possible to send POST data with a PHP redirect?
The idea of what I am trying to do is :
1) there is a.php page . it has a html form and submit button . when the user submits the form , the data will post to the b.php page.
2) in b.php page I want to get the post data(of curse it can be done with php) and manipulate it , after that I need to make a SOAP request to a gateway payment .
3) client will submit credit card information and submit the form in gateway . the gateway will send the SOAP response to the b.php page .
4) I need to verify the payment in b.php and then post the data to a.php and also I want to redirect user to a.php and show them the post data . is it possible to do it with curl? can curl send the post data and redirect the user to that page with the post data?
for some reason I don't want to use javascript , it can be done with hidden input and javascript form submission . I'm afraid that it can't be done with curl .
any suggestion on how to solve this issue?
Thanks.