Multiple HTTP headers of the same type cannot be handled (Known Issue)
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) Connector.open(HTTP_URL);
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.