Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4615117

REGRESSION: UrlConnection::getContentType returns NULL when running the applet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • deploy
    • x86
    • windows_2000



      Name: jk109818 Date: 12/17/2001


      Java(TM) Plug-in: Version 1.4.0
      Using JRE version 1.4.0-beta3 Java HotSpot(TM) Client VM

      Writing an applet to retrieve gif, jpeg ,png files from a server.
      Both IE 5.5 and Mozilla 0.9.5 when both are using 1.4 beta 3

      e.g.
      URL url = new URL("http://server/picture1.gif");
      URLConnection connection = url.openConnection();
      String type = connection.getContentType();

      Expecting "image/gif" but instead get null for the content type.
      No getContent... methods work, e.g getContentLength() doesn't work.

      This worked in previous versions of the JRE

      Release Regression From : 1.3.1
      The above release value was the last known release where this
      bug was knwon to work. Since then there has been a regression.

      (Review ID: 137138)
      ======================================================================

            djayaramsunw Devananda Jayaraman (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: