Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

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

From Wiki
Jump to: navigation, search

Archived.pngArchived: 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.

Article Metadata
Created: User:Technical writer 1 (07 Sep 2006)
Last edited: hamishwillee (25 Jul 2013)


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.


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 25 July 2013, at 09:42.
45 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.