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
Can we refresh servlet in client and server side automatically?
When should you prefer to use doget() over dopost()?
Which interface should be implemented by all servlets?
Which http method is said to be non-idempotent and idempotent?
Why do we need a constructor in a servlet if we use the init method?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
Can a jsp be called using a servlet?
What is a server side include (ssi)
How do you find out what client machine is making a request to your servlet
How to get the IP address of client in servlet?
What is called Scriptlet?
Difference between forward() method and sendredirect() method ?
List some life cycle methods of a servlet.
If my browser does not support cookie, and my server sends a cookie instance what will happen?
How to make sure a servlet is loaded at the application startup?