Akamai interview question

How does a web server know that the HTTP request was from a mobile or desktop?