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

How do cookies work in servlets?

1001


What is Client-Server Computing?

2355


What is the life-cycle of servlets?

1094


Explain the jar and war files in servlet?

1044


What are the difference between RMI and Servlets?

1521


What's the difference between authentication and authorization?

1080


Given the request path below, which are context path, servlet path and path info?

991


Can we refresh servlet in client and server side automatically?

1003


How do you find out what client machine is making a request to your servlet

1009


What is the process for chaining servlet?

997


How to generate the server side programming and the advantages of it over the other languages?

943


What are the advantages of servlets over traditional cgi?

1040


What exactly are the functions of servlet?

1036


What do you mean by servlet context?

1059


What is a servlet-to-servlet communcation?

1110