http://qs1969.pair.com?node_id=842752


in reply to Re^2: passing a file to a cgi script
in thread passing a file to a cgi script

So you need to open the text file, read each set of values and pass them to your URL. Perhaps you want to use something like LWP or WWW::Mechanize (or similar if you need JavaScript support) to make your task easier.