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;
如果没有加密,他们安全级别都是一样的,随便一个监听器都可以把所有的数据监听到
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!