in reply to Passing Data between Scripts

There is a limit to the size of the data that can be passed through GET query string. Redirecting to a POST does not work.

One solution that people didn't mention is running the final.pl script from the upload.pl script. If query.pl is a CGI script, then you can pass the parameters on the command line. Faking a POST is harder because it requires writing to the child process.

As long as the upload.pl does not write anything to the client, the final.pl script can write the entire response.

my $query = 'wddx=' . $packet; exec('final.pl', $query);