• Post Reply Bookmark Topic Watch Topic
  • New Topic

FTP client

 
marco tognoni
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want read a file text from my web site via FTP,
i open a URL connection, but when I try to open a InputStream pointing to Text file, causes this error:

java.io.IOException: Server returned HTTP response code: 500 for URL: ftp://ftp.supereva.it/prova/vocaboli.txt
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:691)
at java.net.URL.openStream(URL.java:955)
at vocabolario.FrameVocaboli.loadFromUrl(FrameVocaboli.java:67)
at vocabolario.FrameVocaboli.<init>(FrameVocaboli.java:40)
at vocabolario.Main.main(Main.java:6)
why ?
thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!