Hi, all
SORRY ALL- it was my mistake, I should have put "/" before the filename
---------------------------------------------------------------------
>I have a problem creating an InputStream object here is the code :
>I get the following exception error:Code:URL url = new URL("http", "archive.ncsa.uiuc.edu", -1, "SDG/Software/Mosaic/Demo/url-primer.html"); URLConnection urlc = url.openConnection(); urlc.connect(); InputStream input = urlc.getInputStream();
>Thnx in advanceCode:Exception in thread "main" java.io.IOException: Server returned HTTP response code: 400 for URL: http://archive.ncsa.uiuc.eduSDG/Software/Mosaic/Demo/url-primer.html at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at Url.main(Url.java:9)
-----------------------------------------------------------------



Reply With Quote


Bookmarks