When retrieving the headers from a URLConnection the results differ from what happens with the Sun jvm. Specifically some headers get mashed together instead of apearing as 2 different headers. I think this happens if a header with the same name appears twice (with different values). I will attach a test case.
-- Summary: Weird handling of HTTP Headers Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ifoox at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26487