Years ago I struggled with what I believe was a browser bug as header-redirect on post containing multipart/form-data didn't work stable enough.
By habit, I still use JS-redirect when dealing with multipart/form-data, instead of header-redirect. In essence:
echo "<script>document.location = 'receipt.php';</script>";
//instead of
header('Location: receipt.php');
Question: Are there (still) situations when header-redirects should be avoided in favour of JS-redirect (apart from specific functional reasons such as bandwith-checking etc).
UPDATE Ran in to PHP - Set cookie and redirect
Is set-cookie + redirect http compliant or not?
Also under: Why can't I set a cookie and redirect?