title: Can't retrieve the JSON Post data, file_get_contents('php://input') is empty
body: <p>Guys I'm having the weirdest, head splitting issue ever. I know it has been asked many times before but none of the answers shed light on my issue and I can't get it working.</p>
  
  <p>Problem: <code>file_get_contents('php://input')</code> returns NULL no matter what I try.</p>
  
  <h2>Things I've tried/checked so far:</h2>
  
  <ul>
  <li>allow_url_fopen is on</li>
  <li>echo $_POST; didn't work either</li>
  <li>php://input used only once in the PHP code (v5,6)</li>
  </ul>
  
  <h2>I get NULL when I do this;</h2>
  
  <pre><code>$data = json_decode(file_get_contents('php://input'), true);
  var_dump($data);
  </code></pre>
  
  <h2>My Goal:</h2>
  
  <p>I'll just parse the response sent by the payment processor and do some stuff with it.</p>
  
  <h2>JSON sent from the payment processor;</h2>
  
  <p>Activity logs in my dashboard show that this JSON data is being sent successfully upon new subscription.
  <a href="https://codebeautify.org/jsonviewer/cb44885d" rel="nofollow noreferrer">https://codebeautify.org/jsonviewer/cb44885d</a></p>
  
  <p>Any advice is highly appreciated, it's been 12 hours and I'm still stuck with it.</p>