Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
Get send data in url, post send data hidden
Get have limit, post don't have limit
GET -1.Requests data from a resource2. data request having limit3. data can be viewed in URL4. GET request can be cashed , POST -1.Submits data to be processed to a resource2. data submission having no limit3. data cannot be visible4. post request is not cashed
1. GET Method have some limit like only2Kb data able to send for request But in POST method unlimited data can we send.
2. when we use GET method requested data show in url but Not in POST method so POST method is good for send sensetive request.
GET is for data retrieval only. You can refine what you are getting but it is a read only setup and yes, as you mentioned anything used for refinement are part of the URL.
POST is meant for sending data, but is generally a way to 'break' the simple workings of HTML because you are neither guaranteed of anything that is happening, it can just fetch data, send data or delete data.
There are also PUT and DELETE in the HTML standards, but its all about finding web servers that support these actions as well. As the names imply PUT sends data for either the creation or updating while DELETE is for removal of data.
Enjoy! :)