Re: Redirecting with the POST method.

From: Date: Sat, 29 Jun 2002 00:15:33 +0000
Subject: Re: Redirecting with the POST method.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104443@lists.php.net to get a copy of this message
php@net.co.cr wrote:
header("Location http://www.domain.net/script.php? fsi=dgfs&login=password=refergf4";) Don't forget your colon after "Location" in the function call. Browsers might be able to interpret it anyway, but it's wrong and might break somewhere.
The problem is this redirection is being done with the GET method, so all query string will be shown. How can I make this redirection use the POST method? You can't. This "redirection" is just a way of informing the browser that it needs to to to the location identified in the "Location" header to receive the content it desires. Even if a POST method was used in the request, the GET method will be used in all 300 range responses.
Anybody know of an easy hack? I know there is a way but that requires me to re-compile PHP , which I cant do. I'm guessing the "way" you speak of is having the server do the POST itself using a PHP extension. This isn't the same thing. You can't exactly *force* the browser to submit a POST request. It's a good thing. :)
Chris

« previous php.general (#104443) next »