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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > [Resolved] Custom HTTP response headers

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2010, 12:20 PM
muisei muisei is offline
New Member
 
Join Date: Mar 2010
Posts: 2
Default [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.

Last edited by NiteWave; 03-24-2010 at 03:56 AM..
Reply With Quote
  #2  
Old 03-23-2010, 08:10 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,295
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
Reply With Quote
  #3  
Old 03-24-2010, 12:38 AM
muisei muisei is offline
New Member
 
Join Date: Mar 2010
Posts: 2
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.
Reply With Quote
Reply

Tags
http response header

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 03:32 PM.



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