shatara@memit.enet.dec.com (Chris Shatara) (03/13/90)
I have been trying out the recently announced BITFTP capability to allow users access to FTP capability who would otherwise not have access to it. Having tried it I now have a bunch of questions, which I suspect have more to do with UNIX and FTP protocol than BITFTP itself. (I know nothing about UNIX - surprise! :-) ) As a test I tried to do two things: 1) Get a directory of an FTP host 2) Get a file from an FTP host For both these tests I used APPLE.COM as the host in question. TEST 1 - DIRECTORY: ------------------ The BITFTP command string I sent out was as follows FTP apple.com USER anonymous ASCII DIR QUIT Basically I am am specifying ASCII mode and requesting a directory. The directory listing I got looked like the following: (lines preceeded with >'s and <'s are commands to and responses from the target host...not all are included here). > DIR >> DIR ( DISK >>> PORT 128,112,129,99,27,2 <<< 200 PORT command successful. >>> LIST <<< 150 Opening ASCII mode data connection for /bin/ls (0 bytes). <<< 226 Transfer complete. total 3 -r--r--r-- 1 root 200 0 Dec 22 16:54 .rhosts dr-xr-xr-x 2 root bin 512 Dec 16 1988 bin dr-xr-xr-x 2 root 200 512 Oct 14 1988 etc drwxrwxrwx 22 uucp daemon 512 Mar 12 11:25 pub > QUIT >> CLOSE >>> QUIT <<< 221 Goodbye. Now this directory looks nothing like the directory that Mark Johnson of Apple puts out on the net, an extract of which follows: -- 0 Feb 22 09:08 ./help/dir-files-recent . . . -r 13769 Feb 21 16:59 ./human.interface/notes/hin-006.txt -r 8280 Feb 21 16:59 ./human.interface/notes/hin-005.txt -r 4352 Feb 21 16:59 ./human.interface/notes/hin-004.txt -r 3607 Feb 21 16:59 ./human.interface/notes/hin-003.txt -r 9092 Feb 21 16:58 ./human.interface/notes/hin-002.txt -r 13279 Feb 21 16:58 ./human.interface/notes/hin-001.txt -r 3088 Feb 21 16:57 ./human.interface/notes/hin-000.txt -r 475180 Feb 21 11:40 ./mac/tn/tn.latest.release/tn-90-02.hqx -r 237780 Feb 20 21:21 ./mac/tn/tn.bundles/tn.251.300.hqx TEST 2 - GETTING A FILE: ----------------------- My second test was to attemp to pull down one of the human interface notes, hin-000.txt. Sending the following commands string I got the message back no such file or directory. FTP apple.com USER anonymous ASCII GET /human.interface/notes/hin-000.txt QUIT Is this the proper syntax for specifying the file in question? The following is the transcript of the session with apple.com from BITFTP. > FTP apple.com > USER anonymous >> OPEN APPLE.COM <<< 220 apple.com FTP server (Version 4.173 Tue Aug 22 16:30:19 PDT 1989) ready. >> USER anonymous shatara@memit.enet.dec.com >>> USER anonymous <<< 331 Guest login ok, send ident as password. >>> PASS ******** <<< 230 Guest login ok, access restrictions apply. > ASCII >> ASCII >>> TYPE a <<< 200 Type set to A. > GET /human.interface/notes/hin-000.txt >> GET /human.interface/notes/hin-000.txt HIN-000.TXT.D ( REPLACE >>> PORT 128,112,129,99,26,255 <<< 200 PORT command successful. >>> RETR /human.interface/notes/hin-000.txt <<< 550 /human.interface/notes/hin-000.txt: No such file or director y. > QUIT >> CLOSE >>> QUIT <<< 221 Goodbye. ============================================================================= | Chris Shatara | Internet: shatara@memit.enet.dec.com | | Opinions expressed are | DEC Easynet: memit::shatara | | mine and mine only! | UUCP: ...!decwrl!memit!shatara | =============================================================================