Making your script print a "Location: " header before it starts to grind should produce about the same result, this would however not be able to produce some new stuff within that session. Unless you make it write a standard .html file that you can access without running the script.