Fire off a mini-webserver to do the query, and then redirect the browser to it.
The first page can display the initial result, then include a link to get more, which
reconnects to the same mini-webserver.
That'd be a combination of
column 2 and
column 23 from my WebTechniques columns.