Re: PHP Header to stimulate a POST method or POST string????
| From: | Scott Fletcher | Date: | Wed, 18 Feb 2004 16:19:22 +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-178127@lists.php.net to get a copy of this message | ||
Whoa!! I never thought about that. Now, I'm beginning to understand
this... Fortunately, I have Mozilla, so I found out about the "Live HTTP
header" extension, not releted to the keywords while Google searching just
recently so I installed it and saw that it is different than I thought. I
saw no "Location:" feature, now your comments surely would be of a help.
Thanks a million! Now I'll have to decide which one to use..
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/