Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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) ?

share|improve this question

2 Answers 2

Sounds like you may be hitting a limit imposed by the suhosin patch for PHP - specifically the suhosin.post.max_value_length parameter.

Is there anything in the web server's error_log which could help?

share|improve this answer
    
Nothing interesting in error log, but in access log I see request, and length of response - 0 –  Korjavin Ivan Oct 27 '13 at 2:58
    
Sometimes suhosin logs to syslog. –  fredden Nov 12 '13 at 20:19
up vote 0 down vote accepted

It was php_value max_input_vars

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.