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


Please Help Members By Posting Answers For Below Questions

What are the types of servlets? Explain

670


What is war file?

576


How many objects of a servlet is created?

784


What are the drawbacks of cgi?

562


What is httpservlet class?

538






What is cookie? Why is cookie used?

576


What are the new features added to servlet 2.5?

586


What is the dispatcher servlet?

509


List some life cycle methods of a servlet.

581


The code in a finally clause will never fail to execute, right?

595


What are the functions of Servlet container?

607


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

614


How can an existing session be invalidated?

655


What are the types of Session Tracking ?

638


Can a jsp be called using a servlet?

578