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 / 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

Can we refresh servlet in client and server side automatically?

1003


When should you prefer to use doget() over dopost()?

1086


Which interface should be implemented by all servlets?

1169


Which http method is said to be non-idempotent and idempotent?

1000


Why do we need a constructor in a servlet if we use the init method?

989


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3346


Can a jsp be called using a servlet?

1078


What is a server side include (ssi)

1076


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

1009


How to get the IP address of client in servlet?

1028


What is called Scriptlet?

1058


Difference between forward() method and sendredirect() method ?

985


List some life cycle methods of a servlet.

1013


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1038


How to make sure a servlet is loaded at the application startup?

991