This may sound daft.

I've build a script which gets records from DB, puts them in a CSV and forces a download using the headers, etc.
When I try to use a header to redirect afterwards, nothing happens.

Do I have to 'reset' the headers?
If so, what are the default headers?