Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


237 chars total, and

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

works perfect.

But with file temp2:


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

Sounds like you may be hitting a limit imposed by the suhosin patch for PHP - specifically the 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


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.