LSAPI api help

accassar

Active Member
#1
Hello,

I am trying to retrieve an arbitrary HTTP header using the lsapilib.c library provided with the php sapi module.

I've tried using GetHeaderVar but it is not in there. How can I do this?
 

accassar

Active Member
#3
lsapi

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?
 

webizen

Well-Known Member
#4
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)
{
...
}
 
Top