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

URLConnection can neither get nor set multiple request properties w/ same key

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.5
    • core-libs
    • beta
    • generic
    • generic
    • Verified



      Name: diC59631 Date: 06/09/98


      URLConnection.getRequestProperty(String) and
      URLConnection.setRequestProperty(String, String) do
      not support multiple HTTP headers with the same key.
      To do so would be occasionally useful, e.g. HTTP/1.1
      "Warning" headers may be repeated. I would suggest
      e.g. String[] getRequestPropertyMultiple(String)
      and appendRequestProperty(String, String) (which would
      add the header without deleting any one(s) already
      present, vs. setRequestProperty(String) which always
      deletes any previous ones).
      (Review ID: 30728)
      ======================================================================

            ywangsunw Yingxian Wang (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: