Bug in HttpURLConnection?

R

Roedy Green

I have discovered what might be a bug in HttpURLConnection. The powers
that be have a way of twisting every bug into a feature, so I should
not be too dogmatic yet.

I fetch an URL that has a redirect handled by HTTP. Java
automatically follows it.

The first document is not compressed, just a stub with the name of
the redirect in it redundantly.

The second document is gzipped. However, Java reports the compression
state of the FIRST irrelevant document, not the second when I do a
urlc.getContentEncoding().

If if go directly for the second document, all works ok.
 
C

Claudio Nieder

Hi,
I have discovered what might be a bug in HttpURLConnection. The powers
that be have a way of twisting every bug into a feature, so I should not
be too dogmatic yet.

Don't guess. Write a short example program, see if this produces the
error in the latest Java 1.6_07 and if it does file a bugreport on http://
bugs.sun.com/bugdatabase/

claudio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top