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.
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.