Re: send a POST to a URL from within PHP code
| From: | Ben Ramsey | Date: | Mon, 26 Jan 2004 14:20:37 +0000 |
| Subject: | Re: send a POST to a URL from within PHP code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175757@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I answered a question similar to this yesterday. There is a
user-submitted function listed in the PHP manual under HTTP functions
that will POST to another page from within a PHP script and return the
value of the POST back to the PHP script without ever ending the script
execution or leaving the script. Is this what you are talking about?
The function is located at: http://nf.wh3rd.net/projects/http.inc/
Vincent Dupont wrote:
| Hi all,
|
| I would like to simulate sending a form in POST to a specified URL
through PHP. I knwo how to do this from a HTML form :
| <form method="post" action="http://url.com/query">
| blablabla
| </form>
|
| I would just like to simulate this because I have some processes that
will change the values of the form before sending it to the 'action' URL
|
|
| With a GET, the fields would be included into the query strinbg, so
this is quite easy. What happens in a POST?
|
| Any idea is welcome
|
| Vincent
| mailto: vincent.dupont@ausy.be
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAFSI1IcIs3CP5DxwRAta1AJ9lOXv7qWppwWBOI/0T3Rm1HlTf1ACeK17j
2bkdR4+WOM6ENsZrgdC9oIY=
=GZNI
-----END PGP SIGNATURE-----