Namespaces
Variants
Actions

Archived:MIDlet hangs while trying to perform cookie-based communication with a server (Known Issue)

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Normal HTTP communication works fine but when cookies are being set, the openOutputStream() method doesn't return and the application hangs.

SignpostIcon Wifi 52.png
Article Metadata

Compatibility
Platform(s): Series 40 3rd Edition (initial release)

Article
Created: User:Technical writer 1 (07 Sep 2006)
Last edited: hamishwillee (28 Jun 2012)

Description

Whenever a MIDlet tries cookie-based communication with a server and if the server returns "HTTP 1.1/200" instead of  "HTTP1.1/200 OK", the application hangs because openOutputstream() method doesn't return.

How to reproduce

Write a MIDlet doing cookie-based communication and receive "HTTP1.1/200" instead of "HTTP1.1/200 OK" from a server.

Solution

The server should return "HTTP/1.1 200 OK" instead of "HTTP/1.1 200" in the response. OK shouldn't be missing from the response.

This page was last modified on 28 June 2012, at 08:04.
117 page views in the last 30 days.
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