Hello,
Short version:
how can we send post data while redirecting to an "external" website? I'm using asp.net MVC and I want to redirect the user to oldwebsite.com/oldlogin.asp when a username is not found, to try to log in the old system.
Long version:
Scenario:
We have a site oldwebsite.com with a login form on the index.html.
The login form POSTs the data to oldwebsite.com/private/processLogin.asp
We have made a new version of this private part of the site: newwebsite.com/newprivate
Some customers have been selected to test newwebsite.com/newprivate. Accounts have been made for them in the database for the newprivate system (not linked to the old website).
We want those new users to still be able to use the login form on oldwebsite.com to login to the new system. We have the following plan in mind for achieving this:
Make the login form POST to newwebsite.com/newprivate/loginGateway.aspx
Upon login, check if the username exists in the new system. If it does, check password etc and route the user to newwebsite.com/newprivate/index.aspx
If the username does not exist in the new system, redirect the user to oldwebsite.com/private/processLogin.asp.
Most of this is no problem, except that last step. We need to be able to send post data in the redirect to oldwebsite.com/private/processLogin.asp..
So, how can we send post data while redirecting to an "external" website?
=> I am aware of the javascript solution, but oldwebsite.com currently requires no javascript so this is not the best solution I guess..