I really don't know which program may have already printed a header. This is something I have to figure out for myself. Isn't there a way to get this information from the server? Or cashed somewhere in the browser (the calling programs would be in the same browser session)?