Archived:MIDlet hangs while trying to perform cookie-based communication with a server (Known Issue)
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.
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.


(no comments yet)