I have a webpage that kicks off a perl script that has the potential to take a long time (30 seconds or so). The success of this script is of great interest to the client and so ideally, I would like to display an animated gif (Processing... or something like that) until I know whether or not the script failed or succeeded. The problem is of course what to do when the script returns. I know I could use AJAX, and Ive done it before, but I think I would prefer a simpler solution in this case. I would like to just redirect to a new page with the message of success or failure, but how do you redirect when you've already sent the HTTP header?