PHP HTTP_USER_AGENT seems incomplete or shortened for litespeed

Discussion in 'General' started by staiano, Mar 13, 2014.

  1. staiano

    staiano New Member

    I have two web servers. One with litespeed, one with apache. If I compare PHP Variables [from phpinfo()] I see what seems to me a partial browser user agent for the server running litespeed. For that server I see:
    _SERVER["HTTP_USER_AGENT"] Gecko/20100101 Firefox/24

    However if I look on the server with apache I get what seems to be the full user agent. In this case I see:
    _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Firefox/24.0.

    Is this the expected HTTP_USER_AGENT for a server running litespeed? Is there some configuration or settings I have incorrect?

  2. mistwang

    mistwang LiteSpeed Staff

    Maybe HTTP_USER_AGENT env was modified by a rewrite rule or something, LiteSpeed itself does not do post-processing of "User-Agent" header.
  3. staiano

    staiano New Member

    There is no rewrite of the user agent that I can find as I am the one who wrote all the rewrites. I has to be something in litespeed as I can't find anything in php either.

Share This Page