I have a page.php
that dynamically generates a URL address $url
, to which I would like to redirect the visitor.
I don't want to redirect him right away from that same page, because of the problem I encountered here.
Therefore, is it possible for page.php
to automatically generate a POST request with the value of $url
(1 second after the page opens, without interaction from the visitor), into page2.php
(that would process the request and make a 302 redirect to $url
)?
*I am interested in this method because I want $url
to be sent in the HTTP header/content, and not in the URL itself, nor in the body of any page (and I know that this is what the POST method does, though it usually requires action from the visitor).