Posted by J.O. Aho on 12/21/05 13:41
AndrewF wrote:
> HI mate,
>
> Thanks for that, but unfortunately I have to POST the data rather than
> send it as a GET. I tried this one but the URI at the other end is
> expecting data to be posted... presumably for security reasons...
I haven't tested post redirections, so I'm not sure, but it's said that this
would work:
<?PHP
header("HTTP/1.0 307 Temporary redirect");
header("Location: https://www.example.com/sentopage.php");
exit;
?>
It should keep the post data and send that to the CC-payment-host.
If you have time to read the RFC that has to do with headers, you would easily
find how it's done without the HTTP-temp-redirection hack.
//Aho
[Back to original message]
|