OK I've tried cURL, and this works pretty well, up to a point.
There are a few problems though, one being that execution seems to return to the referring page after the destination page has processed.
An example - The referring code: forward.php
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, "http://www.forwardtodomain.com/destination.php" );
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
$result = curl_exec($ch);
curl_close($ch);
echo "<br>Redirecting page<br>";
and the destination page prints a message: destination.php
echo "<br>Arrived at destination<br>";
The thing is that the destination prints the text from destination.php, and THEN prints the text from forward.php which occured after executing the forward. Furthermore the addressbar shows forward.php as the url. So its as if it's forwarded and come back.
Is this supposed to happen? I'm finding that the payment co (known as 'C') aren't liking the redirection, so thinking that it could be to do with this little quirk.
What options can I change to work around this?