Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User asifsanli's Avatar
    Join Date
    Apr 2010
    Posts
    80
    Hi,

    My application works fine before signing with Verisign certificate. After signing, It doesn't send the "user agent" string correctly when establishing http connection.

    I gave the permissions by inserting into manifest and jad files like that:

    MIDlet-Permissions: javax.microedition.io.Connector.file.read, javax.microedition.io.Connector.http, javax.microedition.io.Connector.file.write, javax.microedition.io.Connector.https
    MIDlet-Permissions-Opt: javax.wireless.messaging.sms.receive, javax.wireless.messaging.sms.send, javax.microedition.io.PushRegistry, javax.microedition.io.Connector.sms, javax.microedition.io.Connector.socket

    What can you say about it?

    Thanks and regards.

  2. #2
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,863
    With signing, your user-agent string changes. See the MIDP, JTWI and MSA specifications for details. What does your Nokia send?

  3. #3
    Registered User asifsanli's Avatar
    Join Date
    Apr 2010
    Posts
    80
    An empty string comes as user-agent. Another point is that, When I use https connection, It comes correctly. The problem occurs only when using http connection....

    Thanks and regards.

  4. #4
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,863
    Is this your Nokia 5800 XpressMusic? Did you check via WLAN as well? Do you use a proxy over GSM/UMTS?

  5. #5
    Nokia Developer Champion njzk2's Avatar
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814
    you can set the user agent in the request header if you really need it

  6. #6
    Registered User asifsanli's Avatar
    Join Date
    Apr 2010
    Posts
    80
    Yes of course I need them. that's why i am asking.
    When the application is not signed, they are always sent. After signing, the user agent is sent only via https connection. Why it is not sent via http connection?? This is what I really wonder.
    There must be something about signing and http connection. This is what I want to learn.

    Thanks and regards.
    Last edited by asifsanli; 2011-01-17 at 15:59. Reason: eksikti :)

  7. #7
    Nokia Developer Champion njzk2's Avatar
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814
    well then,
    Quote Originally Posted by njzk2 View Post
    you can set the user agent in the request header

  8. #8
    Registered User asifsanli's Avatar
    Join Date
    Apr 2010
    Posts
    80
    Ok well but I do not use just one device and user-agent changes according to the devices. Then If I will set the user agent manually then I have to get the device model name and set it accordingly. There are hundreds of nokia devices and that is not a clever solution..

Similar Threads

  1. User Agent
    By Eruk in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2009-12-11, 18:08
  2. User agent
    By Kmurthy in forum Mobile Web Site Development
    Replies: 2
    Last Post: 2006-10-19, 16:45
  3. About User-Agent
    By linjunan in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2003-12-29, 01:15
  4. user-agent or User-Agent
    By jkarstedt in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2003-09-02, 16:01
  5. User Agent
    By achan in forum General Messaging
    Replies: 1
    Last Post: 2003-04-09, 16:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved