Home > Web Front-end > JS Tutorial > Summary of the difference between ajax request get and post_javascript skills

Summary of the difference between ajax request get and post_javascript skills

WBOY
Release: 2016-05-16 17:17:51
Original
888 people have browsed it

Get If the request URL does not change, remove the cache and improve efficiency; the request will be cached in the browser, and user information can be viewed through history, which is low security;

post transmits changing data display and variable access;

Get transmits data through the url address, and the data volume cannot exceed 1024byte;

Post is transmitted to the server as the entity content of the http message, and the amount of data transmitted can be large;

The data transmitted by get must be encoded by encodeURIComponent to prevent garbled characters.

get method, the server uses Request.QueryString to get the value of the variable;

Post mode, the server uses Request.Form to obtain the submitted data;

Parameters in both methods can be obtained using Request.

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