LSAPI api help

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

  1. accassar

    accassar Active Member


    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 Well-Known Member

    please elaborate the issue.
  3. accassar

    accassar Active Member


    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 Well-Known 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.

    /* {{{ proto array litespeed_response_headers(void)
      Fetch all HTTP response headers */

Share This Page