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

FTP User Error

 [1/8] from: tb::digitalgeneration::de at: 18-Oct-2004 14:43


Hi all, I 've a problem with ftp if the user is a emailadress. I.e. user: [name--beispiel--de] pass: 12345 read ftp://user:[pass--ftp--host--de] Any ideas? It seems that REBOL ignore the rest of the string when the command found the first @. I tried %40 for @ too - but it doesn't work. Regards --thomas

 [2/8] from: lethalman:fyrebird at: 18-Oct-2004 14:43


thomas wrote:
>Hi all, >I 've a problem with ftp if the user is a emailadress. I.e.
<<quoted lines omitted: 5>>
>Regards >--thomas
I'm new to rebol, however i know that [name--beispiel--de] will become automatically an email! and not a simple string!, so try this: user: "[name--beispiel--de]" It should work... -- Fyrebird Hosting Provider - Technical Department

 [3/8] from: tb:digitalgeneration at: 18-Oct-2004 15:09


>I'm new to rebol, however i know that [name--beispiel--de] will become >automatically an email! and not a simple string!, so try this: >user: "[name--beispiel--de]"
I receive the same error: User Error: Failed login to beispiel.de as name The ftp stopps at the first @ and not at the : before the pass

 [4/8] from: rebol:krutek:info at: 18-Oct-2004 14:51


Hi, you're trying to connect to your ftp using name "user" and password "pass". Try something like >>read rejoin [ftp:// user ":" pass "@ftp.host.de"] bye, rebolek thomas wrote:

 [5/8] from: tb:digitalgeneration at: 18-Oct-2004 16:31


Please let me explain the problem with these simple script: user: ask "Username? " pass: ask "Password? " ftp-host: www.example.de read join ftp:// [user ":" pass "@" ftp-host "/"] --> IF the Username is an emailadress like [name--example--de] the ftp command use at the login only the left part of the userstring (name) as User-ID and the right part as ftp-path. So my problem is how can I use an email string as User-ID regards --thomas

 [6/8] from: gabriele:colellachiara at: 18-Oct-2004 16:33


Hi Thomas, On Monday, October 18, 2004, 4:31:47 PM, you wrote: -->> IF the Username is an emailadress like [name--example--de] the ftp command t> use at the login only the left part of the userstring (name) as User-ID and t> the right part as ftp-path. So my problem is how can I use an email string t> as User-ID Use: read [scheme: 'ftp user: "user" pass: "pass" host: "etc."] Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [7/8] from: petr:krenzelok:trz:cz at: 18-Oct-2004 16:45


thomas wrote:
>Please let me explain the problem with these simple script: >user: ask "Username? "
<<quoted lines omitted: 5>>
>the right part as ftp-path. So my problem is how can I use an email string >as User-ID
use following patch at user.r or in your script directly. The trick is to allow url parser to accept @ char. The problem is, that URL RFC does not allow usage of such char or so, but well, it is being used pretty frequently, so I hope we get someday RT to make the patch permanent .... net-utils/url-parser/user-char: union net-utils/url-parser/user-char make bitset! #"@" or you can use scheme aproach, something like: user_: ask .... pass_: ask .... read [scheme: 'ftp host: "www.example.cz" user: user_ pass: pass_] maybe it can be done some easier way, dunno right now ... -pekr-

 [8/8] from: antonr::lexicon::net at: 19-Oct-2004 0:55


The fact that it is an email, will not cause a problem in this case, and in many similar cases in rebol. Rebol has no problem sticking together such types together into a string or another type. Example; Four datatypes on one line (url! email! word! and finally string!): join ftp:// [[name--beispiel]. 'dom ".de"] ;== ftp://[name--beispiel--dom--de] It all becomes a url! Anton.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted