تفاوت های بین متدهای doGet و doPost در Java Servlet

different between doGet and doPost() are as follows:
  1. doGet() method is a default method whereas doPost() explicitly
    should be mentioned
  2. doGet execute in 3 situation: 1-when end user clicks submit button 2-when
    end user provides URL 3-when end user clicks on the hyperlink
  3. but doPost used only when we click on submit method.
  4. doGet is not secure but doPost is most secure.
  5. doGet method is used to get the data from the server whereas doPost is used
    to post the data to the server.
  6. User name and password and secure data should not be sent by doGet().
    under doPost() we can send it.
  7. with doGet method we can send  255 - 260 KB data whereas doPost is unlimited
  8. doGet() is more faster than doPost().
نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد