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
How can an existing session be invalidated?
What is servlet collaboration?
What is servlet interface?
What is the procedure of invoking different servlet in a different application?
List out the difference between ServletConfig and ServletContext?
Why is httpservlet declared abstract?
How we can call a jsp from the servlet?
How can I send user authentication information while making URL Connection?
Explain load on start-up and its importance?
Why do we use sendredirect() method?
How do you design microservices?
Does servlet have main method?
What is dispatcher servlet?
How do you configure a centralized error handler in servlets?
What is the use of java servlet api?