在机器人之间httppost和HTTPGET方法的区别? [英] Difference between httppost and httpget method in android?
问题描述
谁能告诉我之间Httpost和HTTPGET method.Httpclient差异可以执行职务并获得method.Please解释1和2的方法之间的差异
Can anyone tell me difference between Httpost and httpget method.Httpclient can execute post and get method.Please explain the difference between 1 and 2nd method
1。) httpclient.execute(httppost)
和另一个
2。)httpclient.execute(HTTPGET)
2.) httpclient.execute(httpget)
推荐答案
在HTTP GET方法的所有值用户发送到服务器,嵌入式与我们发送的请求,其中第三方可以很容易地看着它的网址。如果我说这更多的技术方法,通过使用HTTP GET方法,我们正在发送用户信息请求的报头部分不能在体内。
In Http Get Method all the values that user sends to the server, embedded with the URL that we send as the request, where a third party can easily watch it. If I say it more technical way, by using the HTTP GET method, we are sending user details in the header part of the request not in the body.
<一个href="http://anujarosha.word$p$pss.com/2012/01/20/handling-http-get-method-in-android/">source
其中如在HTTP POST方法我们通过使用HTTP机密数据传送到不同的位置。究其原因是内容进入体内,不与头在GET方法。
Where as in Http Post method we transfer confidential data to a different location by using HTTP. The reason is the content goes inside the body, not with the header as in GET method.
<一个href="http://anujarosha.word$p$pss.com/2012/01/27/handling-http-post-method-in-android/">source
您也可以参考 Android开发者网站
这篇关于在机器人之间httppost和HTTPGET方法的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!