-4
Could they explain in detail what they are? And also give examples of how they work?
-4
Could they explain in detail what they are? And also give examples of how they work?
1
The big difference between GET and POST methods is probably visibility. A GET request is sent as a string attached to the URL, while the POST request is encapsulated next to the HTTP request body and cannot be seen
Browser other questions tagged php post get
You are not signed in. Login or sign up in order to post.
Related (or duplicated): Use of $_REQUEST instead of $_GET, $_POST and $_COOKIE
– Jéf Bueno
Related: Is it safe to use $_GET in PHP? (Parameter in URL)
– Jéf Bueno
The problem with these related questions is the title. I would never think so, but that’s okay. Thanks for the help.
– Lucas de Carvalho
Well related: What are the advantages of using the right HTTP methods?
– Jéf Bueno
Well related: How the HTTP protocol processes requests?
– Jéf Bueno
Yes, Lucas. It’s almost impossible to find anything in the site search, I understand well.
– Jéf Bueno
I did not deny the question, however by poor quality of response that received the questions that Linkei answer much better, GET and POST is not a matter of visibility, so much so that the POST can receive different types of data on payload, the difference is much greater.
– Guilherme Nascimento
The only difference between the 2 is that it doesn’t appear in the URL? Testing here seems like that’s all..
– Lucas de Carvalho
@Lucascarvale this only in browsers, the HTTP protocol goes far beyond browsers, if you use in a call via Java in an android application, both will be invisible. The difference between POST and GET is in the way that transmits the data, remember POST can receive more than one type of data format (payload), see this answer: https://answall.com/a/50989/3635, then I detail more about the formats
– Guilherme Nascimento
Thank you very much, William!!
– Lucas de Carvalho
In the form, the method="POST" and method="post" have difference?
– Lucas de Carvalho
@Lucascarvalho has no difference, both are equal, browser treats everything to fix and prevent problems even
method="PoSt"
will work– Guilherme Nascimento