What is the difference between doGet and doPost?

Answer Posted / janet

1. doGet() method is used to get information ,while
doPost() method is used for posting information.
2.doGet() requests can't send large amount of information
and is limited to 24-255 characters.How ever doPost()
requests passes all of it's data ,of unlimited length.
3. A doGet() request is appended to the request URL in a
query string and this allows the exchange is visible to the
client,where as a doPost() request passes directly over the
socket connection as part of its HTTP Request body and the
exchange are invisible to the client.

Is This Answer Correct ?    99 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the lifecycle for executing a jsp page.

589


What is the difference between jsp and servlet life cycle?

681


What is servlet in simple terms?

561


Explain request dispatcher and its methods.

583


What is pure servlet?

693






What are the phases of servlet life cycle?

604


Explain the war file?

606


Why do we need servlet filter?

562


List some life cycle methods of a servlet.

585


What is servlet initializer?

499


Explain the differences between jsp and servlet.

537


How can we perform any action at the time of deploying the project?

619


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 ?

604


What is difference between GenericServlet and HttpServlet?

565


How do you communicate in between Applets and Servlets?

589