I created a new API that receives XML data in POST and responds in XML. The link is
localhost/api/rate.php
Now, users were already accessing the old version of this API using the following link,
localhost/rate.php
I need to redirect to the new link when the user hits the old link and displays the response from the new API to the user.
If I user header(location)
the POST data does not get sent to the new API, so I'm out of options.