i testing website see different kinds of error pages generated under various scenarios. in 1 of scenarios, tested uploading image files exceed total size allowed in limitrequestbody
. sure enough, 413 http error
produced following message:
request entity large
the requested resource
/upload
not allow request data post requests, or amount of data provided in request exceeds capacity limit.
however, surprised upload form still being generated below error message. expecting apache stop php processing script. correct behaviour? also, in server access log, seeing 200 ok
status code instead of 413 error. why so?
i understand setting post_max_size
in php.ini same value may able trigger php error , stop processing, wrong expect apache communicate php?
the scripts stops when apache server throws 500 internal server error. other wise, in cases script keeps on going ( of course depends on how write it, catch 413 scenario block of code , not permit script execute after server catches error)