Thursday, 30 August 2018

How to send POST data to the external URL and open the target URL

I want to send the POST data to the given external url like http://www.example.com/catchPostData.php, where the catchPostData.php looks like this:

<?php
echo $_POST['somedata'];
?>

and open this url with the data I've send.
I've tryed to use cURL, but it returns from the given url, and I want to stay there!
Can anybody help me with this?

I think you're looking for something like this: PHP Redirect with POST data
You will need a second page, that submits the post data to a completely different url.

0 comments:

Post a Comment