From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16589 invoked by alias); 28 Feb 2006 16:26:19 -0000 Received: (qmail 16570 invoked by uid 48); 28 Feb 2006 16:26:18 -0000 Date: Tue, 28 Feb 2006 16:26:00 -0000 Message-ID: <20060228162618.16569.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/26487] Weird handling of HTTP Headers In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "ifoox at redhat dot com" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q1/txt/msg00252.txt.bz2 List-Id: ------- Comment #5 from ifoox at redhat dot com 2006-02-28 16:26 ------- Having looked at the Javadoc for these functions, Mark's description is correct. Only that the function names are getHeaderField(int) (and getHeaderFieldKey(int)), getHeaderField(String), and getHeaderFields(). I've changed the testcase to use the gnome bugzilla which does not use https. Here we get 3 headers for Set-Cookie instead of 2. I've also changed the test case to also try to use getHeaderField("Set-Cookie"), with libgcj I get all three headers that have the name "Set-Cookie": Bugzilla_login=110573; path=/, Bugzilla_logincookie=E11DnsKscK; path=/, DEFAULTFORMAT=short; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT While Sun returns only the last one: DEFAULTFORMAT=short; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT The three headers were: Set-Cookie: 'Bugzilla_login=110573; path=/' Set-Cookie: 'Bugzilla_logincookie=yFd0huFJ3I; path=/' Set-Cookie: 'DEFAULTFORMAT=short; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT' I've changed the -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26487