here's an excerpt from a script in which I do something like that:
$pdArgs=
"demo=" . urlencode($argAry['demo']) . "&" .
"first_name=" . urlencode($argAry['first_name']) . "&" .
"last_name=" . urlencode($argAry['last_name']) . "&" .
[. . .]
$URL= "https://HOST.DOMAIN/SCRIPT.php";
exec("/usr/bin/curl -m 120 -d \"$pdArgs\" $URL -L", $httpResponse, $exitCode);
if ($exitCode != 0) {
header ("Location: error.php?code=" . urlencode("https: failure. Exit code is
$exitCode"));
exit;
}
--
When the birdcage is open, | donate to causes I care about:
the selfish bird flies away, | http://svcs.affero.net/rm.php?r=leed_25
but the virtuous one stays. |
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php