Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

FTPConnection

Moderators: kris

Posted: 03/05/08 08:40:58

This most probably has nothing to do with tango, but I'm trying to connect to an ftp server on my network (ftp.ua.pt). When I create a new FTPConnection it fails with a 500 error.

auto ftp = ftp.connect("ftp.ua.pt", "anonymous", "anonymous", 21);

If I use another user, it says it's incorrect. With this user and several passwords, even blank, it times-out, or something....

I tried to connect to another server for testing purposes and it worked...

auto ftp = ftp.connect("ftp.archlinux.org", "anonymous", "anonymous", 21);

You have here a complete log of an ftp client. I just inputted the server, the rest of the settings were automatic.

Status:	Resolving IP-Address for ftp.ua.pt
Status:	Connecting to 193.136.173.27:21...
Status:	Connection established, waiting for welcome message...
Response:	220 Server (Arquivo de Software da Universidade de Aveiro) [193.136.173.27]
Command:	USER anonymous
Response:	331 Anonymous login ok, send your complete email address as your password.
Command:	PASS **************
Response:	230-
Response:	 ************************************************************************
Response:	             Arquivo de Software da Universidade de Aveiro
Response:	                 University of Aveiro Software Archive
Response:	 ************************************************************************
Response:	            WW       WW      WW       WW      WW       WW  
Response:	             WW WWW WW        WW WWW WW        WW WWW WW    
Response:	              WW   WW          WW   WW          WW   WW     
Response:	 
Response:	      O arquivo e' integralmente acessivel por WWW, utilizando o URL:
Response:	     Our archive is also accessible by WWW using on the following URL:
Response:	 
Response:	                               http://ftp.ua.pt/
Response:	 ************************************************************************
Response:	                  Local time is Wed Mar  5 08:37:58 2008
Response:	   You are the user number 1 in your class. Maximum allowed: 100 users.
Response:	 ************************************************************************
Response:	    All access, entries, transfers are logged.
Response:	 ************************************************************************
Response:	 
Response:	230 Anonymous access granted, restrictions apply.
Command:	SYST
Response:	215 UNIX Type: L8
Command:	FEAT
Response:	211-Features:
Response:	 MDTM
Response:	 REST STREAM
Response:	 SIZE
Response:	211 End
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is current directory.
Command:	TYPE I
Response:	200 Type set to I
Command:	PASV
Response:	227 Entering Passive Mode (193,136,173,27,233,16).
Command:	LIST
Response:	150 Opening ASCII mode data connection for file list
Response:	226 Transfer complete.
Command:	PASV
Response:	227 Entering Passive Mode (193,136,173,27,233,17).
Command:	LIST -a
Response:	150 Opening ASCII mode data connection for file list
Response:	226 Transfer complete.
Status:	Directory listing successful
Author Message

Posted: 04/01/08 19:57:08

I am working on a new version of FtpClient?.d(FtpConnection? is inside this file). I would like to see your problem but nowhere in the log was I able to find a 500 error. Would you please email me at lestermartin92@gmail.com. I may forget the location of this post and as such my ability to help would fade away. Thanks, Lester L. Martin II

Lester L. Martin II