Q:

Is it possible to Redirect an HTTPPost in ASP.NET MVC?

In my MVC application I have a View that collects user input in a basic Form.  When the user hits submit it Posts to my MVC Application where I perform a database operation but then need to redirect the values from the Form to an external URL via another HTTP Post.
The real scenario is as follows.
1.
I display a Shopping Cart Page.  The View contains an Html Form which contains financial details (ie. items, unit price, quanitities and a total).  As well it collects billing and shipping information.
2.
When the user hit the submit the Form values are included in a Post to my MVC Application.  At this point I need to record that a payment is about to be collected so I write an entry to my database.  Then I need to redirect to a third party site that will do the credit card processing.  This redirect must be an HTTP Post that includes the same Form Values from my original Form.
3.
The user will be presented with the third party credit card processing page.  It handles the redirect to me.
Thanks.

A:

You could make an Ajax call when the user first submits the form. The call would write to your database, return data (if needed) to the page, then the callback would post the page to the third party.

