GET和POST都是HTTP协议的请求方法(request methods)。Wikipedia上对GET和POST的解释分别是:
The GET method requests a representation of the specified resource. Requests using GET should only retrieve data and should have no other effect. (This is also true of some other HTTP methods.)
大意是说GET method是一种只应该用来获取数据的手段 (should only retrieve data)。
所以说GET其实也是可以向服务器端发送信息的,但因为数据在URL里可见,并不推荐用GET发送信息。
The POST method requests that the server accept the entity enclosed in the request as a new subordinate of the web resource identified by the URI. The data POSTed might be, for example, an annotation for existing resources; a message for a bulletin board, newsgroup, mailing list, or comment thread; a block of data that is the result of submitting a web form to a data-handling process; or an item to add to a database
大意是说POST method可以向服务器端发送信息。被POSTed的数据有可能是一条对已有资源的评论,论坛信息,表单数据或要添加到数据库的数据。
另外,GET的request可以被浏览器缓存(cached),发送的信息是有长度限制的,而POST不会被浏览器缓存,也没有长度限制。