I need to retain the html response from a long running request for which Apache has caused the browser to timeout after 5 minutes. While the request eventually completes at the server, the output is lost (and paid for by the client). I have been investigating writing an output filter whose purpose would be to write each bucket out to a file on disk. I managed to find some filter code which successfully modifies the response returned to the browser and intend to change it so that it does not modify the response but simply writes it out to disk. What is the best way to code disk file writes within an Apache output filter? Or is this something that is ill advised. I think I can probably code a call to a native program, external to Apache, which does the trick but I think this would be inefficient and I don't want to significantly impact performance. The response log need only be for certain requests. Are there built-in Apache routines that can perform writes to a file (other the the Apache log). I have seen mention of mod_ext_filter but unfortunately my Apache server comes shipped with my OS (IBM iSeries V5R4) and does not have this module. Peter
I think the easiest solution would be to modify the script that generates the output in the first place to simultaneously save the out on disk with a timestamp and whatever else you need to identify it and the client. I'm not aware of any way to make Apache save this kind of output natively.
modifying at the point of origin is definitely not easy in this case. That is why I looking for an easy filter solution. I just need to know the safest way to export the data out of each bucket into a disk file.