LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > LSAPI api help

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2012, 04:04 PM
accassar accassar is offline
Member
 
Join Date: Feb 2012
Posts: 31
Default LSAPI api help

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?
Reply With Quote
  #2  
Old 05-09-2012, 09:50 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
please elaborate the issue.
Reply With Quote
  #3  
Old 05-09-2012, 10:26 PM
accassar accassar is offline
Member
 
Join Date: Feb 2012
Posts: 31
Default 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?
Reply With Quote
  #4  
Old 05-10-2012, 12:39 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
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)
{
...
}
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:41 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.