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

HttpURLConnection does not support 307 redirects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • core-libs
    • beta
    • generic
    • generic



      Name: krC82822 Date: 10/18/2000


      10/18/2000, eval1127@eng -- see also bug # 4306543

      java version "1.3.0SS"
      Java(TM) 2 Runtime Environment, Standard Edition (build SilverStream)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      In spite of the fact that HTTP/1.1 support is claimed, the implementation of HttpURLConnection doesn't support 307 redirects, only 302. Use of 302 is deprecated and 307 is required for HTTP/1.1 compliance. Since the client side identifies itself as HTTP/1.1, a server can rightfully use 307 and the client will fail. Using setFollowRedirect() doesn't help since the implemenation doesn't know to look for 307. The user has to code it themselves.


      (Review ID: 111049)
      ======================================================================

            michaelm Michael McMahon
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: