|
Pages: [1]
|
 |
|
Author
|
Topic: ftp download problem (Read 548 times)
|
|
leke
|
I use REBOL to bypass download restrictions at my library. I wrote this, but it won't work for ftp files for some reason. REBOL []
if not exists? %downloads/ [make-dir %downloads/] change-dir %downloads/
prin "ENTER FILE URL: " get-url: input file: read/binary to-url get-url
prin "Enter a name & extension for your file: " name: to-file input
write/binary name file Anyone know why not?
|
|
|
|
|
Logged
|
|
|
|
|
Sunanda
|
Works fine for me if I use a non-FTP URL, eg: http://www.reboltalk.comHave you got the right format for an FTP URL? Do you need to supply a username and password?
|
|
|
|
|
Logged
|
|
|
|
Guest_leke
Guest
|
Have you got the right format for an FTP URL? Do you need to supply a username and password? Err, not sure what you mean by format. The things i've tried are regular download links but with addresses like this: ftp://linuxpakistan.sourceforge.net/pub/l...inux/pkmini.zipI've tried about five links like this one. Would be pretty fluky if they where all duds.
|
|
|
|
|
Logged
|
|
|
|
|
Sunanda
|
That ftp UTL gives me a 404. You may need to add a usename and password (even if only :guest@guest) to complete the ftp URL. You may need to use passive ftp (depends on the server): system/schemes/ftp/passive: true I can read this sample FTP URL. How about you? read ftp://ftp.uu.net/doc/lpf/indexSunanda
|
|
|
|
|
Logged
|
|
|
|
|
leke
|
I got the same error message... ** Access Error: Cannot connect to ftp.uu.net ** Where: open-proto ** Near: file: read/binary to-url get-url prin Even with the lines... system/schemes/ftp/passive: true I did try it on another public access computer and it worked ok. So I guess the failed one has managed to block all FTP downloads successfully. Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |