Home > Web Front-end > JS Tutorial > body text

Teach you how to distinguish GET and POST

坏嘻嘻
Release: 2018-09-14 15:07:39
Original
1929 people have browsed it

Anyone who has done Socket programming in HTTP request style knows that when we design a communication protocol, the "message header/message body" division method is very commonly used. The message header tells the other party what the message is for, and the message body Tell the other person what to do.

get method Is the length limited?

正确的应该理解为:浏览器限制了get 传参的长度 以及 服务器限制了 get 参数的长度

当参数长度过长:
    apache: 
        Request-URI Too Long
        The requested URL's length exceeds the capacity limit for this server.

    nginx:
        nginx 414 Request-URI Too Large

    解决办法:这时可以调大上述两个值。
    client_header_buffer_size 512k;
    large_client_header_buffers 4 512k;
Copy after login

Get security is very low, post security is high

如果没有加密,他们安全级别都是一样的,随便一个监听器都可以把所有的数据监听到
Copy after login

Related recommendations:

php Get http header: PHP Get http header information

laravel5.2-http middleware learning

The above is the detailed content of Teach you how to distinguish GET and POST. For more information, please follow other related articles on the PHP Chinese website!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!