Perl CGI: simulate form post/get's in a script (set param('blah') values)
Posted on 2007-10-10
I want to set post/get parameters in a perl script with out doing a post/get.
I have a script that allows people to manipulate data in the QA environment... While doing so, their actions get recorded...
In the prod environment, I want to be able to go through the recorded actions and replicate them on prod in a semi-automated manner (like merging their changes to prod). I don't want to write all new functions for this... I'd like to be able to just call my script with the same parameters as when they did it manually in QA.
So, I would need to set the param('key') values so that when each sub is called, I can set the param('blahblah') values so they are the same as when the person did it in QA.
Unless there is an easier way... I just need to simulate multiple form submits basicaly without actually doing the submits...