Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: ftp download problem
Pages: [1] Print
Author Topic: ftp download problem  (Read 549 times)
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
ftp download problem
« on: November 09, 2005, 06:10:38 AM »

I use REBOL to bypass download restrictions at my library. I wrote this, but it won't work for ftp files for some reason.
Code:
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
Full Member
***
Offline Offline

Posts: 113


View Profile
ftp download problem
« Reply #1 on: November 19, 2005, 05:17:29 AM »

Works fine for me if I use a non-FTP URL, eg:
  http://www.reboltalk.com

Have you got the right format for an FTP URL?

Do you need to supply a username and password?
Logged
Guest_leke
Guest


Email
ftp download problem
« Reply #2 on: November 23, 2005, 08:21:42 AM »

Quote
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.zip

I've tried about five links like this one. Would be pretty fluky if they where all duds.
 
Logged
Sunanda
Full Member
***
Offline Offline

Posts: 113


View Profile
ftp download problem
« Reply #3 on: November 26, 2005, 04:15:05 AM »

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/index

Sunanda
Logged
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
ftp download problem
« Reply #4 on: December 07, 2005, 01:14:21 AM »

I got the same error message...
Code:
** Access Error: Cannot connect to ftp.uu.net
** Where: open-proto
** Near: file: read/binary to-url get-url
prin
Even with the lines...
Code:
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] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: ftp download problem
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2008, 09:26:55 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2315 Posts in 597 Topics by 4204 Members
Latest Member: hledamka.com

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc