public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/25601] New: setInstanceFollowRedirects ignored in java.net.HttpURLConnection
@ 2005-12-30 12:11 claudiovalente at yahoo dot com
2005-12-30 12:12 ` [Bug libgcj/25601] " claudiovalente at yahoo dot com
2005-12-30 18:01 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: claudiovalente at yahoo dot com @ 2005-12-30 12:11 UTC (permalink / raw)
To: java-prs
I wrote a small class to make a GET request, follow redirects and print the
page's content.
In order to use the redirects I used the setInstanceFollowRedirects(true).
When I run it using SUN's vm everything works fine.
Compiling it with gcj results in a program that does output the page's content,
but when the first response is a 302, it's stops there and doesn't do the
following requests.
The same thing happens with the setFollowRedirects(true).
Seems like libgcj ignores the FollowRedirects
I got the redirect while testing with http://www.google.com/ (no slash at end
results in Malformed HTTP header, but this bug has been solved), if the request
comes from outside the USA, google redirects to a "local" google page.
My java jm:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)
Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)
--
Summary: setInstanceFollowRedirects ignored in
java.net.HttpURLConnection
Product: gcc
Version: 3.3.6
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: claudiovalente at yahoo dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25601
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcj/25601] setInstanceFollowRedirects ignored in java.net.HttpURLConnection
2005-12-30 12:11 [Bug libgcj/25601] New: setInstanceFollowRedirects ignored in java.net.HttpURLConnection claudiovalente at yahoo dot com
@ 2005-12-30 12:12 ` claudiovalente at yahoo dot com
2005-12-30 18:01 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: claudiovalente at yahoo dot com @ 2005-12-30 12:12 UTC (permalink / raw)
To: java-prs
------- Comment #1 from claudiovalente at yahoo dot com 2005-12-30 12:12 -------
Created an attachment (id=10569)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10569&action=view)
Example source
This is the code I used to isolate the bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25601
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcj/25601] setInstanceFollowRedirects ignored in java.net.HttpURLConnection
2005-12-30 12:11 [Bug libgcj/25601] New: setInstanceFollowRedirects ignored in java.net.HttpURLConnection claudiovalente at yahoo dot com
2005-12-30 12:12 ` [Bug libgcj/25601] " claudiovalente at yahoo dot com
@ 2005-12-30 18:01 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-30 18:01 UTC (permalink / raw)
To: java-prs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-30 18:01 -------
Fixed in 4.1.0 at least. It might also be fixed in 4.0.2 but I don't know for
sure.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25601
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-30 18:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-30 12:11 [Bug libgcj/25601] New: setInstanceFollowRedirects ignored in java.net.HttpURLConnection claudiovalente at yahoo dot com
2005-12-30 12:12 ` [Bug libgcj/25601] " claudiovalente at yahoo dot com
2005-12-30 18:01 ` pinskia at gcc dot gnu dot org
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).