LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Apache Migration/Compatibility (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=24)
-   -   [Resolved] Custom HTTP response headers (http://www.litespeedtech.com/support/forum/showthread.php?t=3906)

muisei 03-23-2010 12:20 PM

[Resolved] Custom HTTP response headers
 
Hi,

is it possible to send custom HTTP response headers from the server to the browser?

I'm using litespeed web server v4.0.13 with php 5.2.12.

With the apache web server it was possible.

Example:

The browser generates some ajax requests to the server.
Then the server returns some HTML content and set the following HTTP response header: "Status: -1".
Then the browser uses javascript to get the "Status" response header and determines what to do.

NiteWave 03-23-2010 08:10 PM

it's php related. no difference between apache and litespeed in this point.

using php header() function:

http://php.net/manual/en/function.header.php

muisei 03-24-2010 12:38 AM

Thank you.

I found the source of my confusion. It was the 'Status' header. I changed it to something else like 'Return' and it works now. I suppose the 'Status' header is filtered by litespeed for some reason.


All times are GMT -7. The time now is 11:03 PM.