Allowing CGI and long running programs to get along

Solution 1: Without a request ID

This solution writes a temporary meta-refresh page which is later overwritten by the final results page. This solution does not require a Request ID, but one could still be created before the fork and included in the meta-refresh page.

Sample code:

HTML form      CGI Program

Sample run: