开发者

GET or POST when reading request body

Should I use the GET or POST met开发者_开发百科hod 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.


GET extracts parameters from the request URL. POST extracts parameters from the request body.

So you need POST.


A nice description and interesting discussion on the topic:

http://thinkvitamin.com/code/the-definitive-guide-to-get-vs-post/


POST should be used if you are not planing on using the query string.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜