Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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


Please Help Members By Posting Answers For Below Questions

When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

231


How to get the actual path of servlet in server?

272


How can the session in servlet can be destroyed?

238


What is the difference between a generic servlet and http servlet?

194


What is the type of method for sending request from http server?

242






What do you mean by a filter and how does it work?

206


What do you mean by request dispatcher in servlet? Also explain its methods.

223


What is a deployment descriptor?

228


What is servlet and its advantages?

176


What is httpservlet class?

180


What is getservletcontext?

177


What is a cookie What is the difference between session and cookie

213


How can we invoke another servlet in a different application?

273


What is the use of welcome-file-list?

230


What are the steps involved in placing a servlet within a package?

219