... $|++; $ENV{REQUEST_METHOD} = 'POST'; # Added this line ...