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 are the types of servlets? Explain
What is war file?
How many objects of a servlet is created?
What are the drawbacks of cgi?
What is httpservlet class?
What is cookie? Why is cookie used?
What are the new features added to servlet 2.5?
What is the dispatcher servlet?
List some life cycle methods of a servlet.
The code in a finally clause will never fail to execute, right?
What are the functions of Servlet container?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
How can an existing session be invalidated?
What are the types of Session Tracking ?
Can a jsp be called using a servlet?