What is the size limit of a post request?

后端 未结 9 1246
悲&欢浪女
悲&欢浪女 2020-11-22 02:25

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

I have a flex application that I am posting data back to a php/mysql server via IE.

相关标签:
9条回答
  • 2020-11-22 03:06

    Also, in PHP.INI file there is a setting:

    max_input_vars
    

    which in my version of PHP: 5.4.16 defaults to 1000.

    From the manual: "How many input variables may be accepted (limit is applied to $_GET, $_POST and $_COOKIE superglobal separately)"

    Ref.: http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars

    0 讨论(0)
  • 2020-11-22 03:06

    By default, the post request has maximum size of 8mb. But you can modify it according to your requirements. The modification can be done by opening php.ini file (php configuration setting).

    Find

    post_max_size=8M  //for me, that was on line:771
    

    replace 8 according to your requirements.

    0 讨论(0)
  • 2020-11-22 03:14

    As David pointed out, I would go with KB in most cases.

    php_value post_max_size 2K
    

    Note: my form is simple, just a few text boxes, not long text.

    (PHP shorthand for KB is K, as outlined here.)

    0 讨论(0)
提交回复
热议问题