tags:

views:

60

answers:

3

Is there a way to prevent a php script from sending a http response when the script is finished executing? If not in php is it possible in any-other common web scripting langues?

A: 

assuming no headers have been sent, just die();

Zak
+2  A: 

I believe that would be something controlled by the web server, not the scripting language.

Tim Lytle
Agreed. PHP just terminate the script. Then Apache replies back to the client to send "no data" in addition to a header 200 OK.
Savageman
A: 

No, but you can send a http 204 (No Content).

troelskn