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