Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between GET and POST methods? [duplicate]

Tags:

http

post

get

Possible Duplicate:
When do you use POST and when do you use GET?

I know the basic difference between GET and POST methods. That is we can see the URL parameters in case of GET and can't see the URL parameters in case of POST. Of course we can pass huge amounts of data by POST which is not possible through GET.

Are there any other differences between these two methods ?

like image 527
Puru Avatar asked Dec 16 '22 20:12

Puru


1 Answers

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! :)

like image 57
James Avatar answered Dec 29 '22 03:12

James