Bug in HttpURLConnection?

Discussion in 'Java' started by Roedy Green, Sep 10, 2008.

  1. Roedy Green

    Roedy Green Guest

    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.

    --

    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
    Roedy Green, Sep 10, 2008
    #1
    1. Advertising

  2. 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
    --
    Claudio Nieder, Talweg 6, CH-8610 Uster, Tel +4179 357 6743,
    www.claudio.ch
    Claudio Nieder, Sep 10, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Flip
    Replies:
    8
    Views:
    658
  2. Siegfried Ertl

    HttpURLConnection

    Siegfried Ertl, Nov 30, 2003, in forum: Java
    Replies:
    1
    Views:
    2,235
    Sudsy
    Nov 30, 2003
  3. David G
    Replies:
    3
    Views:
    2,941
    David G
    Dec 16, 2003
  4. igoR Buttler
    Replies:
    1
    Views:
    12,073
  5. Wil Hadden
    Replies:
    1
    Views:
    3,295
    Brusque
    Oct 30, 2004
Loading...

Share This Page