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

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -