php - mod_security and "connection: close" -


we have application needs close connection , redirect page. works fine following code:

header("connection: close\r\n"); header("content-encoding: none\r\n"); ignore_user_abort(true); ob_start(); $size = ob_get_length(); //redirect header("location: $domain", true, 303); header("content-length: $size"); ob_end_flush(); flush(); 

we use mod_security on server, once activated not close connection anymore. audit log not contain entry.

disabling mod_security or setting secresponsebodyaccess off re-enable functionality.

is there option mod_security or php-way leave secresponsebodyaccess on , still able close connection?


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -