The difference between Python Requests Library Get and Post,

(1) In the client, the data submitted by the Get URL manner, data can be seen in the URL; the POST mode, data is placed in the HTML HEADER submitted.

Data (2) GET submission of only 1024 Byte most, while POST is no such restriction.

(3) security issues. As in (1) mentioned that the use of Get, the parameters will be displayed in the address bar, and the Post will not. So, if these data are Chinese data and non-sensitive data, then use the get; if the user input data is not Chinese characters and contain sensitive data, or use the post as well.

 

Form submission and get the difference in the way post summarized the following points:

(1) get the data is acquired from the server, post data is transmitted to the server.

(2) For the form submission, the server can only be used to acquire data Get Request.QueryString submission to the data submitted by the Post manner can only be used to obtain Request.Form.

(3) In general, try to avoid using Get submit forms, because there may lead to security problems. Get example, the user inputs a user name and password in the address bar will be exposed in using the login form. But in the pager, the way you use Get better than with Post.

 

HTTP POST and GET difference of

1, HTTP POST and GET only two kinds of command mode;

2, POST is designed to put things up, and GET is designed to take something from a server, can be sent to the server GET less data, but also can transmit data Get reason, just to tell the server design, what kind of data .POST information you need in the end as the content of the HTTP request, which is transmitted in HTTP GET head;

3, GET and POST transmitted in a manner different from HTTP, the GET parameter is transmitted in the HTTP header, while the data is transmitted Post content in the HTTP request;

4, when the POST data transmission, need not be displayed in the URL out, and the GET method to be displayed in the URL;

. 5, the GET method is limited due to the length of the URL, only about 1024 bytes transferred; POST amount of data transmission can be achieved 2M, and according to Microsoft's argument, Microsoft with the Request.Form () can receive most of the large data is limited, IIS 4 bytes for 80 KB, IIS 5 to 100 KB in bytes;

. 6, the SOAP HTTP POST mode is dependent on the implementation;

Guess you like

Origin www.cnblogs.com/lanyinhao/p/11122393.html