Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- how to remove duplicate header line in CGI
September 17, 2007, 8:25 pm
rate this thread
Re: how to remove duplicate header line in CGI
Figure out which part of your code is printing both of these, and take out
whichever part it makes the most sense to take out.
You could try to tie STDOUT to something that will filter out
a second header, but at that point you pretty much have to face
the fact that the code is now in control of you and not the other
way around. Time to start working on a fundamental re-design.
If you use fatalsToBrowser then a fatal error might cause an extra header
to be printed if one has already been printed. This has never caused
me a problem, so I just live with it. It tries to guess if you have
already printed a header, but I believe the way it does this, and
the effectiveness of it, changes from version to version.
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
- » FAQ 4.54 Why does defined() return true on empty arrays and hashes?
- — Previous thread in » PERL Discussions