I would like to ask wheter the User-Agent property in the HTTP request header only sent via browser?
When I send a http/https request from a blackberry application, it seems there is no user-agent contains in the http header.
Thanks very much!
Also, if it is not possible to get the user agent from the request, are we able to get the user agent from Blackberry device?
Thanks!
Yes, according to the Java document (javax.microedition.io
), it seems that user-agent is not automatically included unless you set it.
http://www.j2megame.org/j2meapi/JSR_271_Mobile_Information_Device_Profile_3_0/javax/microedition/io/package-summary.html