php server settings for restrict post queries

Posted by Korjavin Ivan on Server Fault See other posts from Server Fault or by Korjavin Ivan
Published on 2013-10-26T17:54:11Z Indexed on 2013/10/26 21:59 UTC
Read the original article Hit count: 344

Filed under:
|
|

I have php script on hosting, which receive big data with ajax/post.

Just now, after some works on hosting, I see that script is broken.

I checked with curl:

file temp1:

user_avatar=&user_baner=&user_sig=.... 

237 chars total, and

curl -H "X-Requested-With: XMLHttpRequest" -X POST --data @temp1 'http://host/mypage.php'

works perfect.

But with file temp2:

name=%D0%9C%D0%B5%D0%B1%%B5%D0%BB%D1%8C%D0%A4%%B0%D0%B1%D1%80%D0%B8%D0%BA%D1%8A&user_payed=0000-00-00&...positions%5B5231%5D=on

total chars: 65563

curl -H "X-Requested-With: XMLHttpRequest" -X POST --data @temp2 'http://host/mypage.php'

curl return nothing.

Looks like a problem with apache/php/php.ini or something like that.

I check .htaccess

php_value post_max_size 20M

Which other parameters I should check?

Is it possible that %BO encode kill php/apache? Or total number of parameters (about 2800) ?

© Server Fault or respective owner

Related posts about apache2

Related posts about php