发帖请求的大小限制是多少? [英] What is the size limit of a post request?

查看:47
本文介绍了发帖请求的大小限制是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果这是重复的,我会认为它会是但找不到任何东西.

Sorry if this is duplicate,I would think it would be but couldn't find anything.

我有一个 flex 应用程序,我通过 IE 将数据发布回 php/mysql 服务器.我还没有遇到任何问题,但提前知道这一点可能会为我省去很多挫折和工作.通过 http 发布数据是否有大小限制?

I have a flex application that I am posting data back to a php/mysql server via IE. I haven't run into any problems yet, but knowing this ahead of time might save me a bunch of frustration and work. Is there a size limit to posting data via http?

这篇文章说不:http://www.netlobo.com/ie_form_submit.html

这个讨论说是的:http://bytes.com/topic/php/answers/538226-what-maximum-limit-using-post-method

这一切都在我能在网上找到的东西来回发生.所以将答案限制在个人测试/验证的数字范围内.

And it all goes back and forth what I'm able to find online. So please limit answers to personally tested/verified numbers.

我想发回一个很大的 XML 字符串(比如最大 5mb).

I am wanting to post back an XML string that can be quite large (say up to 5mb).

如果有什么不同:浏览器总是 IE(我们的产品需要它),post 来自 flex 中的 httpService,Web 服务器是 php,DB 是 mySql.

If it makes any difference: browser will always be IE (our product requires it), post is coming from and httpService in flex, web server is php, DB is mySql.

推荐答案

这取决于服务器配置.如果您在 Linux 或类似系统下使用 PHP,您可以使用 .htaccess 配置文件来控制它,如下所示:

It depends on a server configuration. If you're working with PHP under Linux or similar, you can control it using .htaccess configuration file, like so:

#set max post size
php_value post_max_size 20M

而且,是的,我可以亲自证明这是可行的:)

And, yes, I can personally attest to the fact that this works :)

如果您使用的是 IIS,我不知道您将如何设置此特定值.

If you're using IIS, I don't have any idea how you'd set this particular value.

这篇关于发帖请求的大小限制是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆