The difference between http Get and Post_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:38
Original
1203 people have browsed it

1. Get is a request to the server for data, Post is a request to submit data to the server;

2 . Get adds the parameter data queue to the URL pointed to by the action attribute of the submitted form. The value corresponds to each field in the form and can be seen in the address bar; Post uses the HTTP Post mechanism to add each field in the form. Its content is placed in the body of the http package and transmitted to the URL address pointed to by the action attribute. The parameter data cannot be seen in the address bar;

3. The amount of data transmitted by Get is relatively large Small, cannot be larger than 2kb; the amount of data transmitted by Post is large and unrestricted (but theoretically, the maximum amount is 80kb in IIS4 and 100kb in IIs5);

4. When using the Get method to submit data, the server uses Request.QueryString to obtain the value of the parameter; when using the Post method, the server uses Request.Form to obtain the value of the submitted parameter.

5. Get is less safe than Post, but its execution efficiency is higher than the Post method.

Suggestions:

If it contains confidential information, use the Post data submission method;

When doing data query, use the Get method; when doing data When adding, modifying or deleting, use the Post method.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template