views:

296

answers:

1

How do you set the result of an action result to use Post and not Get. I need to redirect the result to an external site that requires the data to be sent using the post method.

(Would like to know also how to redirect to another action with a httpverbs.post filter - but not as important for me at this point).

+2  A: 

By definition a redirect will generate a GET request. You could do the POST on their behalf using a WebClient, but you can't redirect their browser there using POST. If the post needs to go to another site, you might want to simply generate the form action so that it posts there directly.

tvanfosson
Thanks! I'll create a view with all the fields hidden and use js to click the submit button.
Debra