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)
Created attachment 10569 [details] Example source This is the code I used to isolate the bug.
Fixed in 4.1.0 at least. It might also be fixed in 4.0.2 but I don't know for sure.