Explain the difference between GET and POST methods?

Answer Posted / alok kumar ranjan

Re. What is the difference between Get and Post Method?

Answer: (1). Get is Default Http Method, but in post method
you should specify the post method implicitly as follows:-
<form action=" " method="post"

(2) In Get Method, data is passed in URL Pattern. But in
post method data is passed with in method body.

(3) In Get Method, Size of URL is limited because of this e
can send only limited amount of data to server using the
get method. But in Post Method, We can send the data
unlimited amount of the data.

(4) Get Method is not secured because data can be seen in
URL. But Post Method is much secured.

(5) Through Get Method, We can not send data to server but
in Post Method, We send the data to server

Is This Answer Correct ?    19 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by deployment descriptor?

549


What are the life-cycle methods for a servlet?

545


why we should override only no-agrs init() method.

671


How to find whether a parameter exists in the request object?

660


Why doesn’t a servlet include main()? How does it work?

624






Should I override the service() method?

662


What is the difference between portlet and servlet?

506


Write a command to get actual path of a servlet to the server?

535


Is java servlet still used?

585


What is URL Encoding?

617


What do you mean by annotations in servlet?

576


What is servlet and its use?

623


Write a simple servlet program to print the contents of html.

539


What is pure servlet?

691


How to upload a file to the server using servlet?

526