Home  >  Article  >  Web Front-end  >  HTML学习11:HTTP 方法_html/css_WEB-ITnose

HTML学习11:HTTP 方法_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:34:291162browse

        HTTP方法中两种最常用的 HTTP 方法是:GET 和 POST。

        一什么是 HTTP

        超文本传输协议(HTTP)的设计目的是保证客户端与服务器之间的通信。HTTP 的工作方式是客户端与服务器之间

的请求-应答协议。web 浏览器可能是客户端,而计算机上的网络应用程序也可能作为服务器端。

        客户端(浏览器)向服务器提交 HTTP 请求;服务器向客户端返回响应。响应包含关于请求的状态信息以及可能

被请求的内容。

        两种 HTTP 请求方法:在客户机和服务器之间进行请求-响应时,两种最常被用到的方法是:GET 和 POST。

        (1)GET - 从指定的资源请求数据。

        (2)POST - 向指定的资源提交要被处理的数据。

        GET和POST区别表格:


        二表单(算作是客户端)提交代码:

HTML琛ㄥ
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn