What is the difference between GET and POST methods in form submitting? Give the cases where we can use GET and POST methods?


Top Questions

The main difference between GET and POST is how the form data is passing. Both are used for passing form field values.

All the values which is submitted by the GET method will be appended to the URL.
Where as POST method send the data with out appending the URL(hidden)

In GET Method we can bookmark the URLs where as in POST method its not possible

In GET Method there is a limit for passing the data from one page to another(ie 256 characters according to w3c standards)
But in POST we can send large amount of data

Compared to POST get is Faster

POST is more secure than get method

If you refersh the page , POST method shows an annoying alert box

Some firewalls doesnt allow POST methods.

All the informations which is passed by GET method will be stored in webserver(log file) but in POST we can not

just want to add some points

just want to add some points to the above mentioned differences between post and get methods.

1)Get method is mainly used to read the information from server and to display it on the page. and Browsers are designed in such a way that get method data will be cached and so it will avoids rerunning the entire requests.

2)post methods are used to update information on server(but get method can not update infromation on server) and it will always get an updated data from server rather than caching the data on browser.

one more thing i wanted to add is the limit for passing get method data is increased by more than 256 characters in new browers.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Check It !

Tweet It

W3 Updates

Stay informed on our latest news!

Syndicate content