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

From: Date: Wed, 18 Feb 2004 17:55:26 +0000
Subject: Re: PHP Header to stimulate a POST method or POST string????
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-178145@lists.php.net to get a copy of this message
Groan!!! I get permission denied error for fsockopen()..... I looked around on the Internet and it narrow down to the temporary directory like "/tmp" for unix. I don't believe that is the problem because the $_SESSION feature work great without a problem. The file permission doesn't seem to be the problem because the directory folder is already at "dr-xr-xr-x", so not sure what the problem is exactly... Scott F. "Chris Shiflett" <shiflett@php.net> wrote in message news:20040218160155.32726.qmail@web14302.mail.yahoo.com... > --- 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 (#178145) next »