×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    2

    Socket usage throws a security exception on Nokia devices.

    I'm trying to open a socket connection to port 80 on a Nokia 6630 device. This throws a Security Exception on the device. If this is Nokia's policy, how else can I test my product on the phone? Is there a way around this issue? Is this prevalent on ALL Nokia devices, or just Series 60s?

    On the other hand, this exact code, causes my Series 40 (Nokia 6230i) phone to reboot altogether!

    The reason I'm trying to utilize a socket connection in the first place is because I'm failing to chunk my HTTP request using the normal HttpConnection.

    Any suggessions?

    Thank you,
    Tamer

  2. #2
    Regular Contributor
    Join Date
    Sep 2004
    Location
    Barcelona, Spain
    Posts
    68
    I use socketconnection in my application and I have no problems (I've tested my app on a 6630, 6600 and motorola v980).

    Try another port.

    Hope it helps,
    Nuria.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    2
    Thank you for your reply,
    But the problem is the port has to be 80 since I need to send a huge request data to an http server and I can't load it all into memory at once so it should be chunked, I tried to send a chunked http request but the server response was (the request caontains invalid character &gt), do you have any idea about how to send a chunked http request from nokia 6630 or ven through sockets but to port 80.

  4. #4
    Regular Contributor
    Join Date
    Sep 2004
    Location
    Barcelona, Spain
    Posts
    68
    But if your server is http I think that you can't do a socket connection, I'm not very sure about this, sorry.

    Nuria.

  5. #5
    Registered User
    Join Date
    Jul 2005
    Posts
    1

    Re: Socket usage throws a security exception on Nokia devices.

    an unsigned midlet is not allowed to establish a socket connection to port 80, 443, 8080 as the program should use httpconnection. However there are problems with this implementation on the Nokia 6630 and some operators' wap-gateways.
    Probably the easiest way around these problems is to change the port on which the server is listening.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •