When should I use GET or POST method? What's the difference between them?

后端 未结 14 1973
-上瘾入骨i
-上瘾入骨i 2020-11-21 06:44

What\'s the difference when using GET or POST method? Which one is more secure? What are (dis)advantages of each of them?

(similar question

14条回答
  •  我在风中等你
    2020-11-21 07:45

    The GET method:

    • It is used only for sending 256 character date

    • When using this method, the information can be seen on the browser

    • It is the default method used by forms

    • It is not so secured.


    The POST method:

    • It is used for sending unlimited data.

    • With this method, the information cannot be seen on the browser

    • You can explicitly mention the POST method

    • It is more secured than the GET method

    • It provides more advanced features

提交回复
热议问题