Basically the issue is that I am writing an app with lsapi and I am trying to retrieve the HTTP headers from the app. I used the GetHeader function however that only has the request headers not the http headers.
Is there a function to get the HTTP headers with lsapi?
there is a function in lsapi_main.c to retrieve response headers set by PHP. however, application (like web server) added header is not accessible since php/lsapi app runs in its own process space and unable to access other application's process directly.
Code:
/* {{{ proto array litespeed_response_headers(void)
Fetch all HTTP response headers */
PHP_FUNCTION(litespeed_response_headers)
{
...
}