403 response on POST

Hello,

I’m having some issues with POST http request on my host’s web server. Sometimes I’m getting 403 Forbidden response, and it seams that this happens just when I submit more data, because with small POST request, for example with login form, it works OK. Can it be that there is some size limit in Apache or PHP config ? What should I look for ?

milko,

The default PHP installation has:

; Maximum size of POST data that PHP will accept.
post_max_size = 8M

It’s quite possible that I increased that from 1M ages ago but there is a limit (php.ini) and your host will be controlling that. In other words, that’s a question for your host.

Regards,

DK

Does the “more data” include a file, or just additional fields that were POSTed?

Another possibility, besides the one mentioned above by David, is that your host is running mod_security. This Apache Module runs POST vars through checks and determines whether or not to accept them or pass the request on to a 403 Forbidden page.

Putting a phpinfo() together might help us come to a better conclusion.


<?php phpinfo(); ?>