2 # Simple script to generate a POST result.
4 # Depending on which button was pushed in the form, we either generate a direct
5 # result page, or we use the pattern where the post returns a 303 redirect,
6 # and then the resulting GET yields the true POST result. Sites do this trick
7 # to avoid having POSTS in the b/f list, so you don't run into POSTs getting
8 # resubmitted by accident.
12 $method = $query->request_method();
14 if ($method eq "POST") {
16 print "Content-type: text/html\r\n";
21 Test failure: reloadresult.pl was called with an unexpected method ($method).
26 } elsif ($method eq "GET") {
28 print "Content-type: text/html\r\n";