php - Why does POST Request return 404 -


i have code snippet in php:

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->query($sql)) === true) {     $row = $result->fetch_assoc();     $response['data'] = $row; } deliver_response($response); 

new_person stored procedure returns id, has been tested , works fine , deliver_response returns json format of input. has been tested , works fine.

why post requests return 404 error?

the stored procedure being executed, doesnt return result. when change post method , make request instead works fine!

404 error means page has process post request can't loaded or not exists. have check php , server logs , maybe can find answer question.


Comments