title: Why does POST Request return 404
body: <p>I have this code snippet in PHP:</p>
  
  <pre><code>if (strcasecmp($_POST['method'], 'assignId') == 0) {
  $username = $_POST['username'];
  
  $response['code'] = 1;
  $response['status'] = $api_response_code[$response['code']]['HTTP Response'];
  $sql = "CALL new_person('$username')";
  
  if (($result = $conn-&gt;query($sql)) === TRUE) {
      $row = $result-&gt;fetch_assoc();
      $response['data'] = $row;
  }
  deliver_response($response);
  </code></pre>
  
  <p><code>new_person</code> is a stored procedure which returns an id, it has been tested and works fine and <code>deliver_response</code> returns JSON format of the input. It has also been tested and works fine.</p>
  
  <p>Why do POST Requests return 404 error?</p>
  
  <p>The stored procedure is being executed, but it doesn't return the result. Finally, when I change the POST method to GET and make a get request instead it works fine!</p>