Answer the question
In order to leave comments, you need to log in
A post request arrives, how to read the body?
A post request should arrive on the server, but I don’t know what it looks like, what body it has. Perhaps it is immediately in jsone, but perhaps not. How can I understand all this information and save it to textbook? PHP
Answer the question
In order to leave comments, you need to log in
var_dump(php://input);
And it’s better to check $_POST too, because:
php://input is not available with content type enctype="multipart/form-data".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question