public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "ifoox at redhat dot com" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug libgcj/26487] Weird handling of HTTP Headers Date: Mon, 27 Feb 2006 21:47:00 -0000 [thread overview] Message-ID: <20060227214735.31142.qmail@sourceware.org> (raw) In-Reply-To: <bug-26487-12276@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from ifoox at redhat dot com 2006-02-27 21:47 ------- Here's what the output of URLConnection.getHeaderFields() is for GCJ: {null=[HTTP/1.1 200 OK], Date=[Mon, 27 Feb 2006 21:34:40 GMT], Server=[Apache/2.0.46 (Red Hat)], Set-Cookie=[Bugzilla_login=192617; path=/bugzilla; expires=Fri, 01-Jan-2038 00:00:00 GMT, Bugzilla_logincookie=653228; path=/bugzilla; expires=Fri, 01-Jan-2038 00:00:00 GMT], Keep-Alive=[timeout=15, max=100], Connection=[Keep-Alive], Transfer-Encoding=[chunked], Content-Type=[text/html; charset=]} Here's the output for Sun 1.5: {Connection=[Keep-Alive], Set-Cookie=[Bugzilla_logincookie=653232; path=/bugzilla; expires=Fri, 01-Jan-2038 00:00:00 GMT, Bugzilla_login=192617; path=/bugzilla; expires=Fri, 01-Jan-2038 00:00:00 GMT], null=[HTTP/1.1 200 OK], Date=[Mon, 27 Feb 2006 21:35:37 GMT], Keep-Alive=[timeout=15, max=100], Server=[Apache/2.0.46 (Red Hat)], Content-Type=[text/html; charset=], Transfer-Encoding=[chunked]} These are the same, but when I loop through the headers and print them out here's what GCJ produces: null: 'HTTP/1.1 200 OK' Date: 'Mon, 27 Feb 2006 21:34:40 GMT' Server: 'Apache/2.0.46 (Red Hat)' Set-Cookie: 'Bugzilla_login=192617; path=/bugzilla; expires=Fri, 01-Jan-2038 00:00:00 GMT, Bugzilla_logincookie=653228; path=/bugzilla; expires=Fri, 01-Jan-2038 00:00:00 GMT' Keep-Alive: 'timeout=15, max=100' Connection: 'Keep-Alive' Transfer-Encoding: 'chunked' Content-Type: 'text/html; charset=' and here's Sun: null: 'HTTP/1.1 200 OK' Date: 'Mon, 27 Feb 2006 21:35:37 GMT' Server: 'Apache/2.0.46 (Red Hat)' Set-Cookie: 'Bugzilla_login=192617; path=/bugzilla; expires=Fri, 01-Jan-2038 00:00:00 GMT' Set-Cookie: 'Bugzilla_logincookie=653232; path=/bugzilla; expires=Fri, 01-Jan-2038 00:00:00 GMT' Keep-Alive: 'timeout=15, max=100' Connection: 'Keep-Alive' Transfer-Encoding: 'chunked' Content-Type: 'text/html; charset=' So it seems like libgcj's version of these 2 functions considers the two instances of Set-Cookie to be one header whereas Sun considers them to be 2 separate headers. IBM 1.4.1 shows them as 2 seperate headers, although it returns an empty Map from URLConnection.getHeaderFields() for some reason. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26487
next prev parent reply other threads:[~2006-02-27 21:47 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-02-27 21:34 [Bug libgcj/26487] New: " ifoox at redhat dot com 2006-02-27 21:42 ` [Bug libgcj/26487] " ifoox at redhat dot com 2006-02-27 21:44 ` ifoox at redhat dot com 2006-02-27 21:47 ` ifoox at redhat dot com [this message] 2006-02-28 11:38 ` mark at gcc dot gnu dot org 2006-02-28 16:26 ` ifoox at redhat dot com 2006-02-28 16:27 ` ifoox at redhat dot com 2006-02-28 16:54 ` daney at gcc dot gnu dot org 2006-02-28 22:05 ` daney at gcc dot gnu dot org 2006-03-01 16:11 ` ifoox at redhat dot com 2006-03-01 17:10 ` ddaney at avtrex dot com 2006-03-01 18:10 ` ifoox at redhat dot com 2006-03-03 23:24 ` daney at gcc dot gnu dot org 2006-03-03 23:25 ` [Bug classpath/26487] " daney at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20060227214735.31142.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).