I need to redirect an user, but I need to simulate some form processing, the end point way for a POST request, so I basicly want to redirect my user as he was sending a post request.
I know I can do a page between the both and use javascript to submit an hidden form, but I’d like to avoid that.
Im assuming that you’re doing some sort of stats logging, or something, in the intermediate server?
Another way of doing it.. have the form POST to the target URL, but use ajax to grab the form data first.
the browser will call saveFormValues() first, and then return true indicating that the form can be processed in the normal way.
Of course, this wont work for people without javascript.
The only way of POSTing to your indermediate server, is for your intermediate server to POST the data to the target server itself using cURL. And then returning the reponse back.