Hello, im developing a servlet that needs to know the type of terminal that its connecting to him (WAp or WEB)

Ive tried request.getContentType() but it returns null.

What should i do?