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. Thanks for all your past and future contributions.

Revision as of 11:06, 25 July 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Multiple HTTP headers of the same type cannot be handled (Known Issue)

From Wiki
Jump to: navigation, search


This issue is originally related to Java ME and has been defined in Sun's Bug Database.

The origin of the problem is that Java ME expects that HTTP headers in a given response are unique, while a web server can return multiple headers of the same type in one response. In practice, this means that only the last one of the headers will be retrieved.

How to reproduce

The problem can be reproduced by showing the headers of a HTTP connection. This can be done as follows:

 HttpConnection conn = (HttpConnection);
String httpString;
int index=0;
String headerName = conn.getHeaderFieldKey(index);
httpString = headerName + ": " + conn.getHeaderField(index) + "\n";
//TODO: implement a Form and insert the result HTTP string to the Form


For Series 40 devices, this issue will be fixed in the firmwares of future devices.

For S60 devices, the problem has been fixed in the latest firmware versions of S60 3rd Edition, Feature Pack 1 devices.

This page was last modified on 25 July 2013, at 11:06.
44 page views in the last 30 days.