search
HomeBackend DevelopmentPHP TutorialWhat is the maximum length of data transferred by GET and POST_PHP Tutorial

In various web development languages, data is basically transferred between each page. The more commonly used data transfer methods in web development are get post. Until now, I have only known that the amount of data transferred by get is larger than The amount of data transferred by post is smaller, so you still need to use post to transfer large amounts of data. But how much data can the maximum amount of data transferred by get post be? Never figured it out.

Due to work needs today, I have to figure this issue out. Let’s talk about the maximum length of data transmitted by GET and POST.

get submits data through URL, so the amount of data that can be submitted by GET is directly related to the maximum length that the URL can achieve. Many articles say that the data submitted through GET can only be up to 1024 bytes. In fact, there is no upper parameter limit for URLs, and the HTTP protocol specification does not limit the URL length. This limit is imposed by specific browsers and servers. IE's limit on URL length is 2083 bytes (2K+35 bytes). For other browsers, such as FireFox, Netscape, etc., there is no length limit. At this time, the limit depends on the server's operating system. That is, if the URL is too long, the server may reject the request or make an incomplete data request due to security settings.

Theoretically, there is no size limit for post, and the HTTP protocol specification does not impose any size limit. However, in fact, the amount of data that post can transmit depends on the server settings and memory size. Because the data volume of our posts rarely exceeds MB, we rarely feel the limit of the data volume of posts. However, in practice, if you upload files, you may find such a problem, that is, uploading relatively large files. When the file is sent to the server, it may not be uploaded. In PHP language, when checking the reason, you may see that there are parameters related to PHP uploading files. PHP has a limit on uploading by default. Generally, this value is 2MB. Change this value. You need to change the value of post_max_size in php.conf. This clearly illustrates the problem.

Articles you may be interested in

  • How to optimize servers, staticize, database optimization, and load balancing for high-traffic websites to achieve high load
  • smarty template How to use php functions in smarty templates and how to use multiple functions for one variable in smarty templates
  • js limits the text box to only input numbers (including decimal points)
  • Mysql database cache cache function analysis, debugging and Performance Summary
  • JS realizes the simulation of Sina Weibo lobby and Tencent Weibo homepage Weibo message scrolling effect
  • Image enlargement display special effect slimbox The most lightweight and powerful Jquery image enlargement effect
  • Solution to the "Invalid parameter encountered" error that pops up when CuteFTP connects to the ftp server
  • jquery implements the simulation of Sina Weibo lobby and Tencent Weibo homepage scrolling effect

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/764100.htmlTechArticleIn various web development languages, data is basically transferred between each page, which is more commonly used in web development. The data transmission method is get post. I have only known about get transmission...
Statement
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
如何使用PowerShell自动执行任务如何使用PowerShell自动执行任务Feb 20, 2024 pm 01:51 PM

如果您是IT管理员或技术专家,您一定意识到自动化的重要性。尤其对于Windows用户来说,MicrosoftPowerShell是最佳的自动化工具之一。微软为满足您的自动化需求提供了各种工具,无需安装第三方应用程序。本指南将详细介绍如何利用PowerShell自动化执行任务。什么是PowerShell脚本?如果您有使用PowerShell的经验,您可能已经使用过命令来配置您的操作系统。脚本是.ps1文件中这些命令的集合。.ps1文件包含由PowerShell执行的脚本,例如基本的Get-Help

浅析php中POST方法带参数跳转页面浅析php中POST方法带参数跳转页面Mar 23, 2023 am 09:15 AM

对于PHP开发者来说,使用POST带参数跳转页面是一项基本技能。POST是HTTP中一种发送数据的方法,它可以通过HTTP请求向服务器提交数据,跳转页面则是在服务器端进行页面的处理和跳转。在实际开发中,我们经常需要使用POST带参数来跳转页面,以达到一定的功能目的。

python requests post如何使用python requests post如何使用Apr 29, 2023 pm 04:52 PM

python模拟浏览器发送post请求importrequests格式request.postrequest.post(url,data,json,kwargs)#post请求格式request.get(url,params,kwargs)#对比get请求发送post请求传参分为表单(x-www-form-urlencoded)json(application/json)data参数支持字典格式和字符串格式,字典格式用json.dumps()方法把data转换为合法的json格式字符串次方法需要

php怎么判断post有没有提交php怎么判断post有没有提交Mar 21, 2023 pm 07:12 PM

PHP是一种广泛使用的服务器端脚本语言,它可以用于创建交互式和动态的Web应用程序。在开发PHP应用时,我们通常需要通过表单将用户输入数据提交给服务器端处理。然而,有时候我们需要在PHP中判断是否有表单数据被提交,这篇文章将介绍如何进行这样的判断。

java如何发起http请求调用post与get接口java如何发起http请求调用post与get接口May 16, 2023 pm 07:53 PM

一、java调用post接口1、使用URLConnection或者HttpURLConnectionjava自带的,无需下载其他jar包URLConnection方式调用,如果接口响应码被服务端修改则无法接收到返回报文,只能当响应码正确时才能接收到返回publicstaticStringsendPost(Stringurl,Stringparam){OutputStreamWriterout=null;BufferedReaderin=null;StringBuilderresult=newSt

NGINX反向代理对HTML页面的POST请求返回405怎么解决NGINX反向代理对HTML页面的POST请求返回405怎么解决May 22, 2023 pm 07:49 PM

实现如下:server{listen80;listen443ssl;server_namenirvana.test-a.gogen;ssl_certificate/etc/nginx/ssl/nirvana.test-a.gogen.crt;ssl_certificate_key/etc/nginx/ssl/nirvana.test-a.gogen.key;proxy_connect_timeout600;proxy_read_timeout600;proxy_send_timeout600;c

PHP代码示例:如何用POST方式传参并实现页面跳转PHP代码示例:如何用POST方式传参并实现页面跳转Mar 07, 2024 pm 01:45 PM

标题:PHP代码示例:使用POST方式传参并实现页面跳转的方法在Web开发中,经常会涉及到如何通过POST方式传递参数,并在服务器端进行处理后实现页面跳转的需求。PHP作为一种流行的服务器端脚本语言,提供了丰富的函数和语法来实现这一目的。下面将通过一个实际的示例来介绍如何使用PHP来实现这一功能。首先,我们需要准备两个页面,一个用来接收POST请求并处理参数

Curl Get命令的示例Curl Get命令的示例Mar 20, 2024 pm 06:56 PM

在Linux中,URL或Curl客户端是一个流行的命令行实用程序,允许您使用HTTPS、HTTP、FTP等多种协议在网络上传输数据。它允许您使用其get、post和request方法发送和接收数据。其中,你需要经常使用“get”方法。因此,学习各种方法和各种选项,你可以用来提高你的生产力变得至关重要。“执行卷曲操作非常简单,只需输入几个简单的命令即可完成。尽管这看似简单,但许多用户并未充分认识到其潜力。因此,这篇简短指南提供了一些关于在Linux系统中使用“curlget”命令的实例。”Curl

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment