For instance user.php -> make a post request to a server http://www.exampe.com,
example.com redirects to user.php and puts some post parameters as well to user.php.
I want a function in php to do that?
Anyone with a solution for me?
I cannot use ajax for this.
Yes, you can achieve such functionality using cURL from PHP. Check out the examples in the PHP documentation.