OS based download routing

Discussion in 'OT Technology' started by DemisE, Dec 11, 2008.

  1. DemisE

    DemisE Active Member

    Joined:
    Oct 17, 2003
    Messages:
    6,337
    Likes Received:
    0
    Location:
    Memphass
    I am working on a project for work that I simply can't figure out. What I am trying to do is get my Apache server to detect the OS of an incoming clients request and assign a file download based on that OS. This will be for blackberrys that connect to our webserver to get an updated version of software but we want the process to be seamless to the end user and for us from a deployment standpoint. Any ideas?
     
  2. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    you can check the http headers with a php/perl/python/ruby/etc type file and send a file conditionally that way.

    Example with php (i'm not a php guy so don't crucify me if this doesn't work anymore):

    $os = $_SERVER['HTTP_USER_AGENT'];

    then the $os variable will tell you what platform the user is on
     

Share This Page