| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: MAC NCSA server |
| User607 Posts: 7 Member Since: 07/26/01 |
posted July 26, 2001 11:34 AM Hi I have a proprietory system that I need to retrieve images from. I use WS_FTP Pro to connect to the system using "ftp" as the username. I want to be able to retrieve files using the FTP tool. I am able to login and get a positive response to the "PWD" command which I have coded as ftp1.command "PWD", result When I issue the command ftp1.LIST (non-blocking with timeout set to 0) the "progress" event is supposed to fire. This never happens. I left the app running for about 10 minutes, hoping something would happen - but nothing did. This system is on a private network and responds beautifully to WS_FTP Pro. The only extra line that I could see WS_FTP Pro sending to the system was the PORT command with the IP address of the local system and two other parameters - which I do not understand. Could the PORT command cause me to not be able to retrieve a file listing ? Thanks Iyer |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 26, 2001 12:25 PM Hi Iyer, First, we recommend using Ftp in blocking mode if possible, as we do in our newer samples. However, if you must use non-blocking, I recommend looking at the Ftp Client sample which demonstrates usage in this mode. You will see that the Progress Event does fire after a LIST in the sample. As far as PORT, the control will send either a PASV (Ftp.Passive = True) or PORT (False) command automatically when the List Method is used. A data connection must be established for the server to send the Listing, and this tells the server how the connection will be established. PORT tells the server that the client is listening on the following IP Address and Port. PASV tells the server that it must listen for the connection. The server replies with the port it will be listening on, and the client can then connect. |
| User607 Posts: 7 Member Since: 07/26/01 |
posted July 26, 2001 12:32 PM Hi I checked PASV. The server does not support the command. And I also learn from FTP archives on dart.com that I cannot change the localport of the client. I am able to connect and get the "OK" reply from the server. Only the LIST command does not work. This seems to be a case of the server not knowing the port on which to send the data. Is this possible ? If yes, how do I work around this ? Thanks once again Iyer |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 26, 2001 12:55 PM Hi Iyer, Let's stick to something that I know should work. Can you connect to the server with our samples? If not, please use the Trace method to create a trace log of the session. You can send the Trace to support@dart.com, ATTN: Ken Thanks, -ken K M Drake Dart Tech Support |
| User607 Posts: 7 Member Since: 07/26/01 |
posted July 27, 2001 3:48 AM Hi Very, very stupid of me to not check the sample out first, before bombarding you with questions. The sample works - yipeee - but returns an error claiming that only DOS/UNIX style listings are supported. I check the listentries object and the count property was zero. What should I do to get the listentries property populated with the file names ? Thanks for you help Regards Iyer |
| User607 Posts: 7 Member Since: 07/26/01 |
posted July 27, 2001 4:34 AM Hi Got it ! Got it ! The file names are in ListEntries.Text property. I now have to sit and parse the blasted thing. I should be able to manage that. One question - obviously, there would be a limit to the number of characters the text property of the ListEntries object can store. What will happen if the number of files returned are too large for the text property ? Obvious answer would be to use wildcards to return small sets of files - but what would be the behaviour ? Thanks a million for all your help. It looks like I can now go and buy my third PowerTCP tool. Warm regards Iyer |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 27, 2001 1:58 PM Hi Iyer, That's correct. With non-Unix and -Dos based listings, you must parse the Listing yourself. I've never actually seen the Listing exceed the size of the Text proeprty. A developer informs me that any size limitation would be due to stack size limitations (typically between 50KB for Win9x and 1MB for NT and 2000) of the machine. Using wildcards with the List Method is certainly an option. -ken K M Drake Dart Tech Support |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|