in reply to Send before headers - in perl,
I think it was for window redirects, when we already had printed header files.
Perhaps you mean <meta http-equiv="refresh"...? The other way is with JavaScript, both methods can even be combined on the same page.
isn't there a way to have something execute before the headers?
If you mean on the server side, then you'd have to delay the output of the headers; once they've been sent to the client there is no way to take it back. But in general you can execute anything you like before you send the headers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Send before headers - in perl,
by bizactuator (Sexton) on Jun 30, 2022 at 06:04 UTC | |
by haukex (Archbishop) on Jun 30, 2022 at 06:38 UTC | |
by bizactuator (Sexton) on Jun 30, 2022 at 06:46 UTC |