Explain the difference between GET and POST methods?
Answer Posted / rajeev sen
Use GET
• To retrieve an HTML file or an image file, because only
the filename needs to
be sent.
Use POST
• To send a lot of data; for example, POST is well suited
for an online survey,
since the length of the query string may exceed 255 characters.
• To upload a file.
• To capture the username and password, because we want to
prevent users from
seeing the password as a part of the URL.
| Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
What is the difference between using getSession(true) and getSession(false) methods?
Differentiate between the web server and application server?
Difference between doget and dopost?
What is meant by a web application
What is the difference between encodeRedirectUrl and encodeURL?
Explain url encoding in servlet?
Define context initialization parameters.
What are life cycle methods of a servlet?
What if we pass negative value in load-on-startup?
What are the supporting protocol by HttpServlet ?
What are session variable in servlets?
Is that servlet is pure java object or not?
Difference between get and post in java servlets?
Is tomcat a servlet container?
Describe some assignments that are executed by servlet container?