What's the advantage of technology POST BODY, unlike the normal POST?
Our Android developer says, it would be easier to send POST requests in the form of a BODY, not as a variable key.
Get the query as: file_get_contents('php://input');
But I get the raw data and he needs a string to parse on the value of the key.
When I get data through POST in the usual way, the data get through the key $_POST["key"] and not worried.
1. What are the advantages of data transmission by method POST through the BODY ? Is there any sense to bother? Android developer says so it is easier to transfer data than using the value key
2. If we Tinker with this technology, there are methods to parse a string into value is key when it comes to this big string:
What is this mysterious acronym - BODY?
Only the transmission of data in the body of a POST request in JSON instead of url encoded?
"What are the benefits of data transmission method"
JSON the main advantage of nested structures (or structures that have not yet invested, but in the process of finalizing functionality may become so), in other cases it will slow down, since the extra bytes in the query + parsing.
"is there methods to parse a string into value-Luce"
Means for parsing JSON in almost any programming language already.
xavier.Breitenberg21 answered on July 9th 19 at 13:59
one question, where do you keep the model ?