forward all request parameters to a java Servlet
Posted: Tue Sep 09, 2008 4:20 am
This is the situation:
Im writing this site in PHP, and, because of some circumstances completely out of my control, i need to write a php script that dynamically passes every request parameter it recieves and sends it to some java servlet.
The java site has some 40 different servlets that i need to acces.
So im writing an "ajax_forward.php" script that should receive a $_POST['ajax_servlet'] parameter that indicates which servlet the rest of the parameters should be passed on to.
A possible solution might be to have php pass all parameters over to a curl command, but im just wondering if theres a 100% php solution that i just have not been able to stumble upon.
I've googled like crazy but... i guess i just have not used the right combination of keywords.
any ideas?
Im writing this site in PHP, and, because of some circumstances completely out of my control, i need to write a php script that dynamically passes every request parameter it recieves and sends it to some java servlet.
The java site has some 40 different servlets that i need to acces.
So im writing an "ajax_forward.php" script that should receive a $_POST['ajax_servlet'] parameter that indicates which servlet the rest of the parameters should be passed on to.
A possible solution might be to have php pass all parameters over to a curl command, but im just wondering if theres a 100% php solution that i just have not been able to stumble upon.
I've googled like crazy but... i guess i just have not used the right combination of keywords.
any ideas?