in reply to Saving .cgi Output; Passing File As Argument?
Are the results different if the user-supplied parameters are different? Perhaps you could use a proxy front-end module from your web server to provide this function. I believe that Apache mod_rewrite has an example of this for automatically generating files in a cache.
Alternatively, you could save the output, before sending it to the client, as a file based on some unique, per-request generated file name. Do not base the file name on any unsanitized data, or it could become an avenue for exploitation.
A third option might be to store the response text in a blob field in a database.
Each option has benefits and drawbacks, but without further information, it is difficult to even recommend an approach to take.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Saving .cgi Output; Passing File As Argument?
by Ragged Robin (Initiate) on Oct 20, 2014 at 18:20 UTC | |
by MidLifeXis (Monsignor) on Oct 20, 2014 at 18:28 UTC |