[Resolved] Custom HTTP response headers

#1
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.
 
Last edited by a moderator:
#3
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.
 
Top