title: How to get POST data by using CURL?
body: <p>I want to turn OFF <code>allow_url_fopen</code> for security reasons. If I turn it off, I cannot use <code>file_get_contents</code>.</p>
  
  <p>I'm using <code>file_get_contents</code> with <code>php://input</code> and URL. as I need to get the POST data with it. Something like this:</p>
  
  <pre><code>$postData = file_get_contents('php://input'); // Example 1
  $postData2 = file_get_contents('https://www.google.com/recaptcha/api/siteverify', false, $context); // Example 2
  </code></pre>
  
  <p>Is there any way I can get the POST data by using CURL or any other secure way?</p>