I have an irritating problem where I need to pass information and focus from one web application to another, but the source application will only send HTTP POST messages, while the target application will only accept GET messages. I'm not able to modify this part of the applications at all, so I need some scripting in between them.
I would've thought a little script could quite easily run through all the key values pairs and create a GET query that auto submits and redirects, but I'm pretty new to this world, and I'm not having a lot of luck finding information about how I might do this without using PHP, which unfortunately I'm not able to, strictly JS only. Right now I'm so in the dark I'm not even sure how JS would receive the POST values (if it can).
The HTTP POST message contains about 20 kvps, and while I don't need all of them in the GET, I'm hoping to have a loop function that adds them into the GET and which doesn't hard code any of those values in, so it's nice and easy to maintain.
Sorry to be such a dunce, but could one of you smart guys give me some direction?
Sorry if this has been covered anywhere else, I tried searching, honest!