JDK-4150792 : HttpURLConnection should not throw a FileNotFoundException on HTTP 401 response
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.1.6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: generic
  • Submitted: 1998-06-19
  • Updated: 1998-07-24
  • Resolved: 1998-07-24
Related Reports
Duplicate :  
Description
getInputStream() method of sun.net.www.protocol.http.HttpURLConnection throws
a FileNotFoundException if the webserver returns a 401 (> 400) response (if
the requested URL did not end with an .html extension). 
This causes a problem for .asp files which are protected. 

test case: Try logging into www.fool.com site.

Comments
EVALUATION .
11-06-2004