Duplicate :
|
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.
|