Reset HTTP headers


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?


No, you shouldn’t have to reset them or anything.

You pretty much can’t do that. What you normally do is go to the “after” page and then start the download.