0

I was using sockets to connect my android application to a server for sending messages. I am now trying to use an HTTP connection. The problem is, which one, and what must appear (HttpClient, HttpPost etc...), I have seen dozens of examples and I am struggling to understand them. I have heard the phrase handshake and all of the buzz words get, post... etc, but havent grasped at which point each is occouring.

I am simply asking for a basic insight into how an http connection is formed and then how we use the methods to send and recieve.

Thanks for any advice.

Simon

4

2 回答 2

1

这个例子展示了很多关于从 Web 获取 (XML) 数据的内容。
这是对该示例中使用的DefaultHttpClient的引用。

网站上还有一个可下载的 eclipse 项目(第一个链接)

祝你的项目好运!

于 2011-04-08T13:06:38.340 回答
0

作为最初的低级方法,维基百科页面似乎相当不错:http ://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol

于 2011-04-08T12:27:42.540 回答