Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between doGet and doPost?

Answer Posted / shivani

doGet is used when there is are requirement of sending data appended to a query string in the URL. The doGet models the GET method of Http and it is used to retrieve the info on the client from some server as a request to it. The doGet cannot be used to send too much info appended as a query stream. GET puts the form values into the URL string. GET is limited to about 256 characters (usually a browser limitation) and creates really ugly URLs.

doPost allows you to have extremely dense forms and pass that to the server without clutter or limitation in size. e.g. you obviously can't send a file from the client to the server via doGet. doPost has no limit on the amount of data you can send and because the data does not show up on the URL you can send passwords. But this does not mean that POST is truly secure. It is more secure in comparison to doGet method.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why doesn’t a servlet include main()? How does it work?

1160


What is a servlet engine?

1041


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

1109


Define the lifecycle for executing a jsp page.

1083


How can we create deadlock situation in servlet?

1433


what is servlet chaining?

1097


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2780


What are the steps that are involved in using the httpservlet class?

1127


What are the different session tracking techniques?

1197


What are the types of protocols supported by httpservlet ?

1223


What is the difference between jsp and servlet life cycle?

1223


What is the requirement of servlet config and servlet context implemented and how are they implemented?

1006


How to get the server information in a servlet?

1171


What do you mean by url pattern in servlet?

1114


How to commuincate between an applet and a servlet?

1055