I have a simple JS code (running on the client side, inside NodeJS). That code does a POST to a PHP file that creates a PDF based on the POST data and sends it back to the client.
Is it possible to make some sort of proxy that would let me replace my current PHP file and let me upload it to another server, keeping the same functionality?
What I'm trying to ask is if it is possible to redirect the POST (with it's data) to another server and stream back the reply? (the alternative would be to get the reply, saving in locally, and then stream the already saved file from the reply to the client).