Re: PHP Header to stimulate a POST method or POST string????

From: Date: Wed, 18 Feb 2004 16:01:55 +0000
Subject: Re: PHP Header to stimulate a POST method or POST string????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178123@lists.php.net to get a copy of this message
--- Scott Fletcher <scott@abcoa.com> wrote: > I am wonder if it is possible to use the header("Location: > https://www.blah.net") while stimulating it as a POST > method/string. It is not, and if you think about that for a minute, you should be glad. You cannot force the user to submit a POST request to any URL, but you can submit a POST request yourself and then show the content of the response to the user. There are PEAR classes that can help you with this (most of the HTTP_* ones), the cURL extension can do it, and you can also do it yourself manually with fopen(): http://shiflett.org/hacks/php/http_post Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/

« previous php.general (#178123) next »