Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get the device name in MIDP  RSS feed

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I'm using Servlet with MIDP .While sending a request to server we set some property like
conn.setRequestProperty( "User-Agent",
"Profile/MIDP-1.0 Configuration/CLDC-1.0" );
"Content-Language", "en-US" );

conn.setRequestProperty( "Accept",
"application/octet-stream" );

at Client side.
Which can be get at server (servlet) side.By
request.getHeader("User-Agent"); method.

Does there any RequestProperty exist from we set the device name at Client side(which later retrive at server side)?
Or is there any other way to do so?

Sachin Warang.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!