Bonjour,
voila j'ai un petit soucis. Lorsque je ne renseigne pas mes variable (host,id,pass) pour me connecter a mon FTP. Java me retourne comme quoi la connexion c'est bien effectué et le transfert aussi
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 String host= connexionFTP.getHost(); String username=connexionFTP.getUsername(); String password=connexionFTP.getPassword(); int reply = 0; client.connect(host); client.login(username,password); System.out.println("Connected to " + client.getSystemName() + "."); System.out.print(client.getReplyString()); reply = client.getReplyCode();Connected to UNIX Type: L8.
215 UNIX Type: L8
Partager