I assume an easy way would be to take the request header directly:
Browse with the device through the web gateway. Then look in your access.log file and you will see the User-Agent field.
You can see what is coming up there. I had to do this with Lotus Notes to make it skip authentication.