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
What is a java servlet?
What is the purpose of inter-servlet communication?
What is the procedure for initializing a servlet?
What is difference between GenericServlet and HttpServlet?
How a servlet is unloaded?
What are the life cycle methods of a servlet?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What do you mean by request dispatcher in servlet?
Differentiate between the print writer and servlet output stream?
What's the advantages using servlets than using cgi?
what is servlet chaining?
What is servlet looping or chaining?
What is the difference between get and post methods?
What are the life-cycle methods for a servlet?
What's the difference between servlets and applets?