This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/14009] libgcj HttpURLConnection does not handle situation where retrieving url without trailing slash after domain.
- From: "k dot allan-gcc at au dot darkbluesea dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Feb 2004 02:27:38 -0000
- Subject: [Bug libgcj/14009] libgcj HttpURLConnection does not handle situation where retrieving url without trailing slash after domain.
- References: <20040204014445.14009.k.allan-gcc@au.darkbluesea.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From k dot allan-gcc at au dot darkbluesea dot com 2004-02-04 02:27 -------
Created an attachment (id=5673)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5673&action=view)
Patch against gcc/libjava/gnu/java/net/protocol/http/Connection.java
This patch rectifies the bug in this report by checking for an empty path and
substituting a "/" in place of nothing in the request line of the HTTP request
header.
The previous patch submitted had a bug. This new patch has been compiled and
tested:
[ken@deviation spider]$ CLASSPATH=/opt/gcc/share/java/libgcj-3.5.0.jar
/opt/gcc/bin/gcj -ggdb -O --main=test test.java -o test &&
LD_LIBRARY_PATH=/opt/gcc/lib ./test apache.org
Retrieveing: http://apache.org/
Got: 8613 bytes
Retrieveing: http://apache.org
Got: 8613 bytes
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5672 is|0 |1
obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14009