Possible Duplicate:
PHP + curl, HTTP POST sample code?
POST data to URL php
How to issue HTTP POST request?
I've created a script that intercepts a regular post, and based on the username does one thing or another.
In one of the conditional branches, I want to move the user along and POST what he wrote down in the login form to another PHP script.
How can I easily make a POST request to a URL?
Is there something like:
$data = array("username" => "admin", "password" => "hunter2");
http_post("foo.com", "POST", $data);
Any suggestions?