Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Special characters in ftp

From: greggirwin:mindspring at: 25-Aug-2006 9:19

Hi Steven, SW> I want to ftp something between two computers on our internal network. SW> Normally this would be a one-liner and easy, and I have done it before. SW> Now, the user ID that I must use (so says the network administrator) SW> contains the "-" character, or, alternatively, I can use one that contains SW> the "/" character. In either case, the ftp does not work. Of course I SW> would expect it not to, because of the special characters. This comes up from time to time. There are two answers: 1) Use a scheme block read [ scheme: 'ftp host: domain.com user: user-domain.com pass: "password" ] 2) Use a patch to the net-utils/url-parser (Thanks Pekr!) net-utils/url-parser/user-char: union net-utils/url-parser/user-char make bitset! #"-" net-utils/url-parser/path-char: union net-utils/url-parser/path-char make bitset! #"#" HTH! -- Gregg