How do you invoke a Servelt. What is the difference in between doPost and doGet methods

Showing Answers 1 - 6 of 6 Answers

arshiya

  • Nov 7th, 2007
 

doGet

1.allows only 2k data
2.url in the form of name=value pairs (www.getHelp.com?name1=value1&name2=value2

doPost

1.no limit on data siza
2.no name value pairs in the url


  Was this answer useful?  Yes

doGet():

the parameters that are passed appear in teh address bar.
There can be security violations since the parameters can be changed.
The doGet() functionality is idempotent.
The doGet() allows payload of 1024 chars.
The addr in the addr bar can be bookmarked.


doPost():
can contain unlimited data in payload.
Cannot be bookmarked.
doPost can be used for non-idempotent requests.
doPost can be used for update queries.
doPost does not heal to security violations.
The parameters do not appear in the address bar.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions