On Fri, 2005-09-02 at 11:34 +0100, Dermot Paikkos wrote: > I did get carried away abit with the redirection, I was thrahing around > by that time. Interestingly you haven't use content-dispostion either.
It has no effect on a redirect. > In the end I created 2 scripts, one to archive and dump the file > somewhere there server could see it before handing it to another to > redirect. The redirect I practically lift out of Chp 4 of the Eagle book. > > The first script ends with a return REDIRECT; and the second ends > with an return OK; I have a sneaky feeling that I may be doing that > wrong and should return OK with both and set the status as you > have done. Your suspicion is right -- that return code is for internal apache purposes, and is not sent to the client. Return OK. I don't really understand why you have two scripts. You should just let apache handle serving the zip as a static file. It's much better at that than any script you write will be, since it handles If-Modified- Since, range requests, and all the other HTTP goodies. Anyway, glad to hear you persevered and got it working. Congrats! - Perrin