Register now or log in to join your professional community.
GET
POST
HTTP POST requests supply additional data from the client (browser) to the server in the message body. In contrast, GET requests include all required data in the URL. Forms in HTML can use either method by specifying method="POST"or method="GET" (default) in the <form> element. The method specified determines how form data is submitted to the server. When the method is GET, all form data is encoded into the URL, appended to the action URL as query string parameters. With the POST, form data appears within the message body of the HTTP request.
HTTP POST requests supply additional data from the client to the server in the message body. GET requests include all required data in the URL. POST , parameters remain in browser cash since they are part of the URL. restricted to ASCII chars. Easier to Hack. restricted length. visible in the URL.GET Parameters are not saved in browser cash.More difficult to hack.No restrictions
get her a convinient a concept when us a parameterfrom formulaire
for opposite post he hidden a parameter
GET request are generally used to get some resources or data from the application server
POST method is used to send data to the application server
GET and POST are both HTTP request methods to retrieve data from the server but the basic difference is that GET method exposes data in the url while POST doesnot
Get - Requests data from a specified resource
It remains in browser history hence not safe
Post- Submits data to be processed to a specified resource
It is safe method
Over HTTP the request is sent through GET and POST are request methods in order to retrieve the data.
Get is used to retrieve data and it is simple but have length restrictions and expose data in url so it cant be used as secure request.
Post can hide data from URL and can take multi forms.
These are http methods and aren't related to OOP