LSAPI api help

Discussion in 'Install/Configuration' started by accassar, May 10, 2012.

  1. accassar

    accassar New Member

    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?
  2. webizen

    webizen New Member

    please elaborate the issue.
  3. accassar

    accassar New Member

    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?
  4. webizen

    webizen New Member

    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)
    {
    ...
    }
    

Share This Page