kerim
04-17-2001, 05:14 AM
This page on my site has links to files in my Anonymous FTP folder:
http://kerim.oxus.net/documents.html
But the links don't work. I always get "file not found" problems. This is true even though if I go through my FTP hierarchy manually from inside an FTP program I get the file without problems. In fact, the URLs were created by copying the URL from my FTP program. But something is wrong. Any help would be *greatly* appreciated. (It seems that about 99% of my problems with coding are all to do with properly locating the path to files!)
Here is an example URL:
ftp://anonymous@oxus.net/public_ftp/kerim/Documents/Syllabi/World_Cultures.pdf
Below is a transcript of both failed (from the web page) and successful (manual) FTP logs:
(1) Failed:
220 ProFTPD 1.2.0 Server (ProFTPD) [host7.hrwebservices.net]
USER anonymous
331 Anonymous login ok, send your complete email address as your password.
PASS *****
230 Anonymous access granted, restrictions apply.
PWD
257 "/" is current directory.
MACB E
500 MACB not understood.
TYPE I
200 Type set to I.
SIZE /public_ftp/kerim/Documents/Research/Proposal.PDF
550 /public_ftp/kerim/Documents/Research/Proposal.PDF: No such file or directory
PASV
227 Entering Passive Mode (216,74,100,93,6,119).
RETR /public_ftp/kerim/Documents/Research/Proposal.PDF
550 /public_ftp/kerim/Documents/Research/Proposal.PDF: No such file or directory
QUIT
(2) Successful
220 ProFTPD 1.2.0 Server (ProFTPD) [host7.hrwebservices.net]
USER *****
331 Password required for ******.
PASS *****
230 User ****** logged in.
PWD
257 "/" is current directory.
MACB E
500 MACB not understood.
TYPE I
200 Type set to I.
SIZE /public_ftp/kerim/Documents/Research/Proposal.PDF
213 69669
PASV
227 Entering Passive Mode (216,74,100,93,6,140).
RETR /public_ftp/kerim/Documents/Research/Proposal.PDF
150 Opening BINARY mode data connection for /public_ftp/kerim/Documents/Research/Proposal.PDF (69669 bytes).
QUIT
226 Transfer complete.
Note: The path seems to be *exactly the same* in the two transcripts! I am very confused.
I posted these transcripts to tech support and they simply told me to log in as "anonymous" rather than no user. I changed the URL accordingly (as listed above) but still no go . . .
kerim
http://kerim.oxus.net/documents.html
But the links don't work. I always get "file not found" problems. This is true even though if I go through my FTP hierarchy manually from inside an FTP program I get the file without problems. In fact, the URLs were created by copying the URL from my FTP program. But something is wrong. Any help would be *greatly* appreciated. (It seems that about 99% of my problems with coding are all to do with properly locating the path to files!)
Here is an example URL:
ftp://anonymous@oxus.net/public_ftp/kerim/Documents/Syllabi/World_Cultures.pdf
Below is a transcript of both failed (from the web page) and successful (manual) FTP logs:
(1) Failed:
220 ProFTPD 1.2.0 Server (ProFTPD) [host7.hrwebservices.net]
USER anonymous
331 Anonymous login ok, send your complete email address as your password.
PASS *****
230 Anonymous access granted, restrictions apply.
PWD
257 "/" is current directory.
MACB E
500 MACB not understood.
TYPE I
200 Type set to I.
SIZE /public_ftp/kerim/Documents/Research/Proposal.PDF
550 /public_ftp/kerim/Documents/Research/Proposal.PDF: No such file or directory
PASV
227 Entering Passive Mode (216,74,100,93,6,119).
RETR /public_ftp/kerim/Documents/Research/Proposal.PDF
550 /public_ftp/kerim/Documents/Research/Proposal.PDF: No such file or directory
QUIT
(2) Successful
220 ProFTPD 1.2.0 Server (ProFTPD) [host7.hrwebservices.net]
USER *****
331 Password required for ******.
PASS *****
230 User ****** logged in.
PWD
257 "/" is current directory.
MACB E
500 MACB not understood.
TYPE I
200 Type set to I.
SIZE /public_ftp/kerim/Documents/Research/Proposal.PDF
213 69669
PASV
227 Entering Passive Mode (216,74,100,93,6,140).
RETR /public_ftp/kerim/Documents/Research/Proposal.PDF
150 Opening BINARY mode data connection for /public_ftp/kerim/Documents/Research/Proposal.PDF (69669 bytes).
QUIT
226 Transfer complete.
Note: The path seems to be *exactly the same* in the two transcripts! I am very confused.
I posted these transcripts to tech support and they simply told me to log in as "anonymous" rather than no user. I changed the URL accordingly (as listed above) but still no go . . .
kerim