Should I use the GET or POST method when sending information to a server in the body of the HTTP request? There are no query parameters appended to the URL, the server will inspect the body of the request for what it needs.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
GET extracts parameters from the request URL. POST extracts parameters from the request body.
So you need POST.
回答2:
A nice description and interesting discussion on the topic:
http://thinkvitamin.com/code/the-definitive-guide-to-get-vs-post/
回答3:
POST should be used if you are not planing on using the query string.