send a POST to a URL from within PHP code
| From: | Vincent DUPONT | Date: | Mon, 26 Jan 2004 14:12:37 +0000 |
| Subject: | send a POST to a URL from within PHP code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-175754@lists.php.net to get a copy of this message | ||
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