Which method is more advantageous doGET() or doPOST()? in which situation does we use doGET() then?

Showing Answers 1 - 8 of 8 Answers

naveen dandge

  • May 27th, 2006
 

Both are advantagous only. use doGet() when you dont require security to parameters that you are passing. And, you can pass not more than 256 chars for doGet() method. And for doPost(). you dont have any limitation like this and it is more secure :) .

  Was this answer useful?  Yes

subin

  • May 30th, 2006
 

In doGet(), the data you are passing will ppend in the URL

But in doPost(),the data passing wont append in URL

  Was this answer useful?  Yes

vikram bahadur

  • May 30th, 2006
 

For request of getting resourse like data, images etc to server, doGet is fine.

For request of posting client date to server doPost is fine.

If there is no difference for client request doPost() should call doGet().

  Was this answer useful?  Yes

mohancse

  • Jun 13th, 2006
 

Both are are advantageous..Both are having some differences..That are

You can send only 256 characters data via GET() method.But these Datas are appear on the URL. So it is not a secure one.

If u want to send a bulk of data, Definitely u should use ths POST() method.Here It is not appear on the URL. So It is said to be a secure one

  Was this answer useful?  Yes

Veeren76

  • Aug 16th, 2006
 

Practical Example of doGet()there is online newspaper and you see news using url something similar to this http://mynewspaper.com/articles/showarticle.jsp?artId=12345this is good use of doGet(), since people normally share news and stuff.Practical Example of doPost()If you are writing an mailing OR online shopping application OR when you are going to submit not-so-confidential data its better to use doPost(), doGet() helps users bookmark URLS, doPost() will give limited help for bookmarking.Veerendra Jote

  Was this answer useful?  Yes

mahesh

  • Apr 25th, 2007
 

doGET() is better

  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