JDK-4984712 : With JRE 1.3.1 getResponseCode() from the HttpURLConnection throw unwanted excep
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.3.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2004-01-28
  • Updated: 2004-02-09
  • Resolved: 2004-02-09
Related Reports
Duplicate :  
Description
When a client try to reach an HTTP server through a propxy without prior identification, the method HttpURLConnection.getResponseCode() should return
407 (i.e. proxy authentification needed).

This works find with Java 1.1.8 and 1.4.
This does not work with 1.3.1: and IO Exception is thrown instead.

This problem has already been reported in BugParade, id 4523989. The customer would like to have it fixed in 1.3.1.

Comments
SUGGESTED FIX An acceptable workaround for the customer is that Sun provides the source code for the HttpURLConnection class. The customer will then make the required changes in the code.
11-06-2004