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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > JSON problem ?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-17-2011, 11:42 AM
saviola8x saviola8x is offline
New Member
 
Join Date: Dec 2010
Posts: 9
Default JSON problem ?

Hello,

I have server has been build apache with mod_php. Installed litespeed 4.1.7 std.

I have 1 magento website, and use json and it works ok on Chrome, but no on Firefox :

Response Headers

Server Apache/2.2.3 (CentOS)
Content-Length 53
Content-Type application/x-json

Content-Type text/html; charset=UTF-8
Content-Length 53
Server LiteSpeed

I added json = application/json to mime.properties but no luck.

Is there litespeed not support json application ?

Regards,

OS : Centos 5.6
Apache : 2.2.3
PHP : 5.3.8
Reply With Quote
  #2  
Old 11-17-2011, 01:41 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
you mean 'json=application/x-json'? lsws should send content-type header once defined. make sure restart the service to make it effective.
Reply With Quote
  #3  
Old 11-17-2011, 06:08 PM
saviola8x saviola8x is offline
New Member
 
Join Date: Dec 2010
Posts: 9
Sr, I typed wrong, when I add json = application/x-json or json = text/x-json, lsws throw php file to download.
Reply With Quote
  #4  
Old 11-17-2011, 06:50 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
how about:
json = application/json
Quote:
I added json = application/json to mime.properties
the full path of mime.properties ?
Reply With Quote
  #5  
Old 09-07-2012, 12:07 AM
sandeep.s85 sandeep.s85 is offline
Member
 
Join Date: Sep 2012
Posts: 11
I've the same problem with litspeed. It's not passing through the application/json header.

Instead it is returning the text/html everytime
Reply With Quote
  #6  
Old 09-07-2012, 11:04 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
make sure json is defined in mime.types http://www.litespeedtech.com/docs/we.../general/#mime

Edit: also upgrade to the latest 4.1.13 and see any difference.

Last edited by webizen; 09-07-2012 at 12:36 PM..
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 08:19 AM.



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