How to simulate POST form submitting in php?

  curl, php, post

For example, I am on a certain page, and I need to send some data via a POST request to another page, so that it would be as if I were pressing submit in a normal form with the POST method.

User should be redirected from 1.php to 2.php which should contain data in $_POST that i sent in 1.php

Source: Ask PHP

LEAVE A COMMENT