I am wondering if there's any way I can write a script to be able to mimic a user clicking a Submit button on a web page? I understand I can do $ua->request(POST 'http://somewhere/foo.cgi', [name => 'me', gender => 'F']); to pass in the key/value pairs into a cgi script. But my problem is I have all these key/value pairs already stored in a HTML file and don't want to write a parser to get these key/value pairs to be used in my script. I want to find a way to load this HTML page full of hidden key/value data and add in the Submit button to be pushed to the cgi script which process the data.
Any suggestions? Thanks very much.
Bella