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 servlet attributes and their scope?
What is url encoding and url decoding
How the servlet is loaded?
Why do we have servlet filters?
Write a hello world program using servlets.
request parameter how to find whether a parameter exists in the request object?
Explain in brief the directory structure of a web application?
What are life cycle methods of a servlet?
What do you mean by request dispatcher in servlet? Also explain its methods.
What is ServletConfig object?
How to get the IP address of client in servlet?
What are the different methods of session management in servlets?
What do you mean by singlethreadmodel interface?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
How is a servlet implemented in code?