what is the difference between doGet() and doPost()?
Answer Posted / giridhar gangapatnam
doGet() doPost()
1)doGet() method can send 1)doPost() method can send
limited amount of data large amount of data.
i.e.upto 256 characters
only.
2)In doGet() method when we 2)In doPost() methodrequest
send request then in Request is passed along withbody
Format there is no body part, part of theRequestFormat.
the request is passed along doPost() method Request
with only Request Format header Format has both body and
part only. header part.
3)doGet() method send limited 3)large amount data has
data because it has only header sent through body part
part,header part has limited of the RequestFormat.
memory to carry the data.
4)doGet() method support book 4)doPost() method doesn't
marks. support book marks.
5)when we send request parameters 5)The requested parameter
in doGet() it will display the in doPost() will not dis
information in URL as a query play the information as
string.so in doGet() data there a query string in URL.so
is no data security. data is secured.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is servlet name in web xml?
Explain the servlet context.
Why HttpServlet class is declared abstract?
what do you understand by url rewriting?
What is the use of attribute in servlets?
What is httpservlet class?
Difference between httpservlet and generic servlets?
What is difference between cookies and httpsession?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What are sessions in servlets?
What is a servlet engine?
What is load-on-startup in servlet?
What are the advantages of cookies?
explain the advantages of servlet life cycle?
Why doesn’t a servlet include main()? How does it work?