When I'm creating a response to an HTTP request and php executes a header call,
1) where exactly is that header field sent to?
I suspect it is to the Web Server that is managing the connection... so I imagine the Web Server (e.g. Apache) is assembling/buffering the http response as the php script sends it, possible in pieces.
2) Is that how it works?
3) If so, is there some place to examine the Apache buffer where said response as it is being 'built' by php/html output?
4) What is the event that tells Apache the response is complete and to send it?
Please correct any errors in my wording/naming of things as I try to better understand how this all works. Thanks--